Welcome to the E-Commerce App. This document provides detailed information on setting up the server locally.
To get started with the local development environment, clone the repository:
$ git clone git@github.com:mashm3ll0w/commerce-app.git
$ cd commerce-app
You can set up the environment using venv
:
# cd into the backend directory
$ cd e-commerce-backend
# create Virtual Environment
$ python3 -m venv venv
# Activate Virtual Env
$ source venv/bin/activate
# Install Dependencies
$ pip install -r requirements.txt
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py runserver
Add a .env
file in the e-commerce-backend
directory with these fields:
SECRET_KEY=
DEBUG=
ALLOWED_HOSTS=
CORS_ALLOWED_ORIGINS=
Install dependencies using npm
:
# cd into the frontend directory
$ cd e-commercefrontend
# Install Dependencies
$ npm install
$ npm start
The backend is served at http://127.0.0.1:8000
The frontend is served at http://127.0.0.1:3000
- Backend Technologies -
Django
,Django REST-Framework
Django REST-Framework-JWT
- Frontend Technologies -
React
Redux
Material UI
MIT License