diff options
-rw-r--r-- | README.md | 31 | ||||
-rw-r--r-- | samples/blog/posts/1-hello-world.json | 4 | ||||
-rw-r--r-- | samples/blog/posts/2-second-post.json | 4 |
3 files changed, 39 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..705270d --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# acms + +an automatically schema-versioned content management system + +## develop + +prepare test data: + +``` +cp -r samples/blog . +cd blog +git init +git add . +git commit -m 'first commit' +``` + +run frontend: + +```console +cd frontend +reload +``` + +run backend: + +```console +cd backend +cabal run backend -- serve +``` + +open browser at `http://localhost:8080`. diff --git a/samples/blog/posts/1-hello-world.json b/samples/blog/posts/1-hello-world.json new file mode 100644 index 0000000..460d5d0 --- /dev/null +++ b/samples/blog/posts/1-hello-world.json @@ -0,0 +1,4 @@ +{ + "title": "hello world!", + "contents": "hello world!" +} diff --git a/samples/blog/posts/2-second-post.json b/samples/blog/posts/2-second-post.json new file mode 100644 index 0000000..7a64fed --- /dev/null +++ b/samples/blog/posts/2-second-post.json @@ -0,0 +1,4 @@ +{ + "title": "second post", + "contents": "lorem ipsum" +} |