Docker and docker-compose must be installed to run the project.
- Clone the project:
git clone https://github.com/mumin91/twitter-api.git
- Go to project root:
cd twitter-api
- Run:
docker-compose up
. The service will be up and can be accessed throughhttp://localhost:8000/
. - Access to container CMD where Django is running:
docker exec -it django_container bash
- Run migrations:
python manage.py migrate
- Run manage commnad for dummy users:
python manage.py create_users
. It will creates some users in the database. User data is printed after the commnad which can be used later for accessing the APIs. - Use
Postman
or anything else to access the API.