From c7d0139116ff5c12ffa4c11dbfee697dbf694c46 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 6 Jun 2024 09:29:50 +0200 Subject: add README --- README.md | 31 +++++++++++++++++++++++++++++++ samples/blog/posts/1-hello-world.json | 4 ++++ samples/blog/posts/2-second-post.json | 4 ++++ 3 files changed, 39 insertions(+) create mode 100644 README.md create mode 100644 samples/blog/posts/1-hello-world.json create mode 100644 samples/blog/posts/2-second-post.json 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" +} -- cgit v1.2.3