Simple django application with products CRUD and user authentication as main features
Simple django application with products CRUD and user authentication as main features
- Python
- Django
- Django Rest Framework
- Docker
- PostgreSQL
- Redis
- Celery
- Follow the guide here on how to clone or fork a repo
- Follow the guide here on how to install and run docker
- To run application with docker
docker-compose up --build
- Copy the IP address provided once your server has completed building the site. (It will say something like >> Serving at http://0.0.0.0:8000).
- Open the address in the browser
Open docker bash with
docker ps
docker exec -it <CONTAINER_NAME> bash
In our case, default container name is "catalog"
- To run migrations
python manage.py makemigrations
python manage.py migrate
- /api/products - return the list of all saved user products
- /api/products/int:pk - returns a single user product (put, patch and delete allowed)
- /api/products/create - add a new product to a user's catalog
- /api/account/register - register a new user account
- /api/account/login - login to an existing user account
- /api/account/logout - user logout
- /api/account/reset-password - reset user password
https://documenter.getpostman.com/view/20490236/2s9XxzuCTy