fullstack hello world type of project
The whole project is divided into 4 different directories
- client
- rest-api
- postgres
- nginx
this is where we are going to spend must of the time.
$ cd client && npm start
Poor implementation of a restfull api.
- GET /api/v1/users
- POST /api/v1/users
- DELETE /api/v1/users/:id
- GET /api/v1/lists
- POST /api/v1/lists
- DELETE /api/v1/lists/:id
AS you might noticed it does not comes with any update method, it could be your Homework if you want.
to run the back all you need to do is:
$ cd rest-api && npm start
To run the db all you need to do is.
$ cd postgres && docker-compose up --build -d
if by any means you found a folder call postgres-data
after you finish cloning the repo it might causes you some trouble. just remove it
$ rm -rf ./postgres/postgres-data
To be honest with you, I don't think this shit works, so dont try to run it.