Portal for distributing Creative Computing Scoiety merch to society members.
Client: ReactJs
Server: Python, Django-Rest-Framework
Database: PostgreSQL
Clone the project
git clone https://github.com/creative-computing-society/merch-store.git
Go to the project directory
cd frontend
Install the project dependencies
npm install
Run the start script
npm start
Go to the project directory
cd backend/config
We recommend you to use virtual environment
python -m venv env
Activate virtual environment
For Windows PowerShell
env/Scripts/activate.ps1
For Linux and MacOS
source env/bin/activate
Install dependencies
pip install -r requirements.txt
Create .env
file in project's root directory(base directory), and add SECURITY_KEY, EMAIL_HOST_USER, and EMAIL_HOST_PASSWORD
Run Migrations
python manage.py makemigrations
python manage.py migrate
Start the server
python manage.py runserver
- auth/login/ - Login
- auth/logout/ - Logout
- auth/change-password/ - change password
- auth/user/ - get user details
- order/all/ - get all user orders
- order/initiate/ - intitate an order
- order/place/ - place an order
- order//- get order details
- product/all/ - all products
- product/<product_id>/ - product details
- cart/add/ - add to cart
- cart/view/ - view cart
- cart/delete/ - delete cart item