Peluche is an e-commerce platform built with React.js and Redux for the frontend and Django for the backend.
- Users can list products to sell and buy from other sellers.
- Sellers can track inventories, add, update, and delete product listings.
- Buyers can browse products, add products to cart, check out, and view order history.
- Buyers can chat with sellers in real time.
The directory will look like this from root view:
├── StockPhotos
├── backend
│ ├── backend
│ ├── marketplace
│ └── templates
├── env
│ ├── bin
│ ├── include
│ └── lib
└── front-end
├── Images
├── node_modules
├── public
└── src
- Install venv in the root directory where requirements.txt is : python3 -m venv ./env
- Activate virtual environment: source env/bin/activate
- Install requirements: pip3 install -r requirements.txt
- Make migration to the database: cd backend && python3 manage.py makemigrations && python3 manage.py migrate
- Start backend: python3 manage.py runserver
- Install yarn/ npm (if needed): brew install node (to install node), brew install yarn (to install yarn)
- In a new terminal, install front-end dependencies in the front-end folder: cd front-end && npm install
- Start front-end in the front-end folder: yarn start
- Start redis server in a different terminal: redis-server
- Install openssl if necessary: brew install openssl
- Install redis if neccessary: brew install redis