Skip to content

Ecommerce App with Admin Dashboard Panel & RestFul Apis

Notifications You must be signed in to change notification settings

ashwani-199/EcommerceAdmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Ecommerce App with Admin Dashboard Panel & RestFul Apis

Introduction

This project is a Ecommerce app application developed with Admin Dashboard Panel. It comes with a Postman collection for easy API testing and interaction.

Prerequisites

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.

Setup Instructions

1. Clone the Repository

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.

2. Create a Virtual Environment

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

3. Install Dependencies

Install all the required packages from the requirements.txt file:

pip install -r requirements.txt

4. Environment Variables

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

5. Database Migrations

Apply the Django model migrations to create the necessary database tables:

python manage.py migrate

6. Run the Development Server

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/.

7. Postman Collection

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.

Conclusion

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.