E-commerce app made in django
- User is able to edit his profile and change/reset his password
- User can have up to four addresses in their account
- The ability to add a product and discount coupon to user cart. The product includes quantity and color
- If the user has the appropriate permissions, he can add new products
- The user has the option of adding an opinion about the product, the opinion includes a comment and a rating on a scale of 1 to 5
- Staff is able to add new discount coupons
- Users can contact via the contact form
- The payment option is simulated using stripe
- Create virtual environment and activate it. To do this open cmd and execute commands below
python -m venv name
- change the name to whatever you prefer
- Change library to created folder and activate your environment
Scripts\activate
- Open git bash and clone this repository
git clone https://github.com/dawdom34/E-commerce-shop.git
- Change directory to E-commerce-shop
- Now is the time to install all required packages to run this app
pip install -r requirements.txt
- Create migrations files
python manage.py makemigrations
- Apply all migrations
python manage.py migrate
- Create superuser
python manage.py createsuperuser
- After execute this command follow the instructions
- For now your database is empty. Let's change that by adding some products to work with
- Make sure you're in E-commerce-shop directory
- Run the command:
python manage.py runscript load_products
- This command will generate database objects based on data from csv file
- Run the development server
python manage.py runserver
- Once the server is hosted, head over to http://127.0.0.1:8000/
Stripe is a suite of APIs powering online payment processing. It is required for the correct operation of the application. Go to official stripe page and register your account - https://dashboard.stripe.com/register When you register, go to the developers tab (upper right corner) and look for API keys (left sidebar). In standard keys tab you will find two types of keys, publishable key and secret key, copy then to E-commerce-shop/shop-app/settings.py