- Python v3.10.12
- Django v4.2
- Djangorestframework v3.14.0
- Make sure you have docker installed on your machine
- Clone the repository
- From the terminal, input these commands:
docker-compose build
docker-compose up
- Finally create a superuser (if you need to create one) with the following commands:
docker exec -it drf_ecommerce /bin/bash
A prompt will show up. Type:
python manage.py createsuperuser
- You can now access localhost:8000 to check the running project
- Download python v3.10.12
- Run the executable file as an administrator
- Add python path to environment variables
- Clone the following repository,
git clone https://github.com/mohammadjayeed/e-commerce.git
- Make a virtual environment with the following command
python -m venv venv
- Activate the virtual environment with the command
venv/scripts/activate
- Install dependencies
pip install -r requirement.txt
- Run the following command to apply it to the database
python manage.py migrate
- Run the following command to create a superuser to access admin panel by adding the required information. We will require username and password to login to the admin panel
python manage.py createsuperuser
- Start the application by typing the following command
python manage.py runserver
- Test the application for models and views by typing the following command
python manage.py test