https://docs.docker.com/get-docker/
First clone the git repo or download it.
The argument "--env-file .env.dev " will inject the environment variables into container
$ docker-compose --env-file .env.dev up
$ docker-compose --env-file .env.dev up -d
ctrl+c to stop the process
$ docker-compose down
-
/api/posts
- Allow: GET, POST
- Content-Type: application/json
- Also Django Rest Framework Interface
- payload for POST
{ "title": "What Stuff", "url": "https://margot.net" }
-
/api/posts/[int:id]
- Allow: GET, PUT, PATCH, DELETE
- Content-Type: application/json
- payload required only for PATCH or PUT
- payload
{ "title": "What Stuff", "url": "https://margot.net" }
-
/api/posts/[int:id]/vote
- Allow: POST, DELETE
- Content-Type: application/json
- DELETE returns code 204 no response
- no payload required
-
/api/auth/signup
- Allow: POST
- Content-Type: application/json
- Returns token
- payload
{ "username":"joao", "password":"secret" }
-
/auth/login
- Allow: POST
- Content-Type: application/json
- Returns token
- payload
{ "username":"joao", "password":"secret" }