2021-08-25 08:37:00 -07:00
|
|
|
# a-blog
|
|
|
|
|
|
|
|
a nodejs express jsonDB blog
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## How 2 setup
|
|
|
|
|
|
|
|
1. clone this repo
|
|
|
|
```bash
|
2021-08-25 08:37:21 -07:00
|
|
|
git clone github.com/Eds-trash-can/a-blog.git
|
|
|
|
```
|
2021-08-25 08:37:45 -07:00
|
|
|
|
2021-08-25 08:37:00 -07:00
|
|
|
2. go into dir
|
|
|
|
```bash
|
2021-08-25 08:37:21 -07:00
|
|
|
cd a-blog
|
|
|
|
```
|
2021-08-25 08:37:45 -07:00
|
|
|
|
2021-08-25 08:37:00 -07:00
|
|
|
3. configurate
|
2021-08-25 08:37:45 -07:00
|
|
|
```bash
|
2021-09-05 17:03:57 -07:00
|
|
|
cp config/config.example.yaml config/config.yaml
|
2021-08-25 08:37:21 -07:00
|
|
|
nano config/config.yaml
|
|
|
|
```
|
2021-08-25 08:37:45 -07:00
|
|
|
|
2021-09-05 17:03:57 -07:00
|
|
|
4. create storge files
|
|
|
|
```bash
|
|
|
|
touch storage/posts.json
|
|
|
|
touch storage/comments.json
|
|
|
|
```
|
|
|
|
|
|
|
|
5. start up
|
2021-08-25 08:37:00 -07:00
|
|
|
```bash
|
2021-08-25 08:37:21 -07:00
|
|
|
node node/app
|
|
|
|
```
|