This is an e-commerce app built with React and Django that allows the user to create an account, log in, and add/remove items to/from the cart. Once the user has selected the items they wish to purchase they are shown a total of their expenses and are able to utilize PayPal to pay for their items. They are then able to view their profile for a summary of their purchases and are able to see the paid and delivery status of their purchases. There are also some actions available to users that have admin privileges related to changing user information and deleting users.
Note: These CLI commands require Python and Node.Js
- Create a python virtual environment (venv)
- Activate the virtual environment and navigate to the main project folder
- Pip install "requirements.txt" for the dependencies necessary for this project
pip install -r requirements.txt
- Navigate to the backend folder (folder with manage.py)
- Run the following command
python manage.py runserver
- Navigate to the frontend folder
- Use the following commands
npm install
npm start
Finally, with both servers running, open the following url to use the app!
localhost:3000
- Admin functionality is available if desired
- You will need to create an admin user
- Navigate to backend and use the following command
python manage.py createsuperuser
then paste the following in your browser and login
localhost:8000/admin