This project is a test task for appfollow
- Docker>=19.03.5
- Docker-compose>=1.24.1
- Install docker and docker-compose
- Clone this repository
- Change secret_key, database user and password (optional), allowed_hosts in .env.prod and .env.prod.db
docker-compose -f docker-compose.prod.yml up -d --build
get posts:
curl -X GET http://localhost/posts
ordering:
curl -X GET http://localhost/posts?order=-id
ordering:
curl -X GET http://localhost/posts?order=-id
limit:
curl -X GET http://localhost/posts?limit=2
offset:
curl -X GET http://localhost/posts?offset=10
multiple:
curl -X GET http://localhost/posts?offset=2&offset=4&order=title
manual fetch new posts:
curl -X GET http://localhost/posts/_fetch
Digital Ocean:
curl -X GET http://159.65.74.146/posts