Fully functional e-commerce website with back-end using Django and front-end using React. Integrated with Stripe for payments and used React-bootstrap components for styling. Project is live at: https://proshop-web.vercel.app.
demo.mp4
To run this project locally on your machine,
- Clone this repository.
- Make sure you have python and node installed.
- Open this project and run following cmd to install dependencies:
pip3 install requirements.txt
- Create a .env file with contents as .env.example file.
SECRET_KEY=
DEBUG=
STRIPE_API_KEY=
DATABASE_URL=
In case you do not want to provide a database url, uncomment line 87 to 92 in settings.py file. https://github.com/VaibhavArora314/drf-react-ecommerce/blob/d31c3537eeaf6fe894a4a3be0b6b3ac6f47dbe9b/backend/settings.py#L87-L92 Also comment line 94 in same file. https://github.com/VaibhavArora314/drf-react-ecommerce/blob/d31c3537eeaf6fe894a4a3be0b6b3ac6f47dbe9b/backend/settings.py#L94 5. Now run following cmds to create and run migrations.
python3 manage.py makemigrations
python3 manage.py migrate
- Now turn on the server using
python3 manage.py runserver
Now the application is running at port 8000 by default i.e. http://127.0.0.1:8000
.