aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 09:29:50 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 09:36:09 +0200
commitc7d0139116ff5c12ffa4c11dbfee697dbf694c46 (patch)
treea9543c7e15b8d572e7ecd9bf3f0a6a863d5aa7f0
parent4003a863256352a43161eba44abecf986e76092c (diff)
add README
-rw-r--r--README.md31
-rw-r--r--samples/blog/posts/1-hello-world.json4
-rw-r--r--samples/blog/posts/2-second-post.json4
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"
+}