This is a basic Django web application with REST APIs for a fictional e-commerce store, excluding the frontend. The app supports two types of user roles: Admin and Customer. The APIs have been designed using Django Rest Framework and tested using Postman.
- Clone the repository to your local machine using the following command:
git clone https://github.com/Error838/E-Com.git
- Navigate to the project directory:
cd your-project-directory
- Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
For Windows:
venv\Scripts\activate
For Linux/Mac:
source venv/bin/activate
-
Install the project dependencies:
pip install -r requirements.txt
- Set up the database:
python manage.py migrate
To run the application, execute the following command in your terminal or command prompt:
python manage.py runserver
Once the server is running, you can access the application in your web browser at http://localhost:8000/.