A CRUD website for selling products built by the Django framework and Django rest framework.
- Create a virtual environment for this project.
- Use
pip install -r requirements.txt
install dependencies packages. - Sign up in Stripe and add your SECRET_KEY, PUBLIC_KEY and ENDPOINT_SECRET in .env file.
- Run
python manage.py makemigrations
thenpython manage.py migrate
. - Create super user
python manage.py createsuperuser
. - Run server
python manage.py runserver
. - For Stripe payments to work you need to first login with
stripe login
then to listen to webhook runstripe listen --forward-to localhost:8000/payment/webhook/
.
- User Authentication
- Cart management with AJAX requests
- Payment with Stripe
- CRUD operations for Addresses
- View orders
- All operations can be done via API endpoints