add README
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -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`.
|
||||
4
samples/blog/posts/1-hello-world.json
Normal file
4
samples/blog/posts/1-hello-world.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"title": "hello world!",
|
||||
"contents": "hello world!"
|
||||
}
|
||||
4
samples/blog/posts/2-second-post.json
Normal file
4
samples/blog/posts/2-second-post.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"title": "second post",
|
||||
"contents": "lorem ipsum"
|
||||
}
|
||||
Reference in New Issue
Block a user