Skip to content

creative-computing-society/merch-store-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Merch Store

Portal for distributing Creative Computing Scoiety merch to society members.

Tech Stack

Client: ReactJs

Server: Python, Django-Rest-Framework

Database: PostgreSQL

Run Locally

Clone the project

  git clone https://github.com/creative-computing-society/merch-store.git

To start the frontend server

Go to the project directory

  cd frontend

Install the project dependencies

  npm install

Run the start script

  npm start

To start the backend server

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

Endpoints

  • 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

About

e-commerce website for official CCS merchandise

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published