A web application built in Django for purchasing products online.
Clone the repository:
$ git clone https://github.com/Mindinventory/django_ecommerce_boilerplate.git
Create virtual environment:
$ virtualenv venv
$ source venv/bin/activate
You will see in front of the prompt that the virtual environment (venv) has been activated.
Install the dependencies:
$ pip install -r requirements.txt
Configure Database settings in settings.py folder as suggested in below documentation:
https://docs.djangoproject.com/en/4.0/ref/settings/#databases
Create a .env file in the project folder. You can find .env.example file for your reference.
Execute below command to create migrations and register models in the database:
python manage.py makemigrations users
python manage.py makemigrations store
python manage.py migrate
Run the below command to populate the database with products:
python manage.py loaddata products.json
Run the development server using below command:
python manage.py runserver
Navigate to http://127.0.0.1:8000/
https://dashboard.stripe.com/settings/account?support_details=true
Note: For payment integration using stripe, add stripe required keys in .env file. You can get them from stripe Dashboard.
https://dashboard.stripe.com/test/dashboard