This project is a Ecommerce app application developed with Admin Dashboard Panel. It comes with a Postman collection for easy API testing and interaction.
Before you begin, ensure you have Python installed on your system. If you do not have Python installed, you can download it from python.org.
Start by cloning the repository to your local machine. Open a terminal and run the following command:
git clone <repository-url>
Replace <repository-url>
with the actual URL of the repository.
Navigate into the project directory: cd path/to/cloned/repo
Create a virtual environment using Python 3.9.6: python3.9 -m venv env
Activate the virtual environment:
- On Windows: env\Scripts\activate
- On macOS and Linux: source env/bin/activate
Install all the required packages from the requirements.txt
file:
pip install -r requirements.txt
Copy the content from the example.env
file to a new file named .env
in the project's root directory. This file should contain your database and secret key configurations. Update the .env
file with your database details:
DATABASE_NAME="Your Database Name"
DATABASE_USER=postgres
DATABASE_PASSWORD=12345
DATABASE_HOST=localhost
DATABASE_PORT=5432
Apply the Django model migrations to create the necessary database tables:
python manage.py migrate
Finally, start the Django development server:
python manage.py runserver
The application will now be running and accessible at http://127.0.0.1:8000/
.
The project includes a Postman collection in postman
folder that contains all the APIs you can use to interact with the application.
Once imported, you can start testing the APIs using the predefined requests.
You have successfully set up the Ecommerce App with Admin Dashboard on your local development environment. Refer to the Postman collection for testing the APIs and to the project documentation for further customization and development.