Code Monkey home page Code Monkey logo

ecommerce_project's Introduction

Setup

1. Install Python3 interpreter

Additional information on https://www.python.org/downloads/

2. Clone this repository into your directory

mkdir ecommerce_project && cd ecommerce_project
git clone https://github.com/DenisDanchyk/ecommerce_project.git
cd ecommerce_project

3. Create virtual environment

python -m venv venv
venv\scripts\activate.bat

4. Install requirements

pip install -r requirements.txt
cd core

5. Set you Google account credentials for authentication system

In core/settings.py add your Google account credentials to EMAIL_HOST_USER and EMAIL_HOST_PASSWORD. If you don't have Google account - create it. Alternitavely, you can use other SMTP host. Instructions, how to set Django SMTP described here.

# TODO: 
SECRET_KEY = '1234567890'
DEBUG = True


EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
# TODO:
EMAIL_HOST_USER = ""
# TODO:
EMAIL_HOST_PASSWORD = ""

7. Create PosgresSQL database

Go to psql shell
postgres=# CREATE DATABASE demo;

And set in `core/settings.py` 

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.postgresql',
    'HOST': 'localhost',
    'PORT': '5432',
    # TODO:
    'NAME': "",
    'USER': "",
    'PASSWORD': ""
}

}

8. Fill cities model

manage.py cities_light

9. Make migrations and run server

python manage.py makemigrations 
python manage.py migrate 
python manage.py runserver

ecommerce_project's People

Contributors

denisdanchyk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.