Git Product home page Git Product logo

emarket's Introduction

E-MARKET

Emarket is online market for buying and selling mobile phones powered on django framework

Python Django Postgres Nginx Docker

Python ver Django ver Psycopg2 ver Nginx ver docker_compose ver

SSL OAuth2.0

With e-market you can order, sell mobile phones, add new product cards and manage them

The product card has several meanings:

user-changeable:
  • title
  • category
  • preview card
  • price
  • product color
  • device storage size
  • count of products

hidden:
  • card id
  • views *the more views on your card, the higher it is in the list
  • owner

Steps to recreate the emarket and launch it on localhost

  1. Install python 3.11.0 and git
  2. Create python venv in directory ...\somedir\emarket python -m venv path\to\myenv
  3. Clone this repo with command git clone https://github.com/blago-white/emarket.git from the ...\somedir
  4. Сreate a file .env in the root of the project and fill it with your data
    SECRET_KEY=...
    POSTGRES_HOST=...
    POSTGRES_USER=...
    POSTGRES_PASSWORD=...
    POSTGRES_TEST_PASSWORD=...
    POSTGRES_DB=...
    POSTGRES_PORT=...
    EMAIL_HOST_USER=...
    EMAIL_HOST_PASSWORD=...
    DEFAULT_FROM_EMAIL=$EMAIL_HOST_USER
  5. Activate the venv from ...\somedir\emarket with command: venv\Scripts\activate on windows or source venv/bin/activate in linux
  6. Run pip install -r requirements.txt from ...\somedir\emarket to install dependencies
  7. Run migrations with:
    1. python emarket\manage.py makemigrations --setting=emarket.testsettings
    2. python emarket\manage.py migrate --setting=emarket.testsettings
  8. Run the testserver from ...\somedir\emarket python emarket\manage.py runserver --setting=emarket.testsettings --insecure
  9. ✨Perfectly!Go to localhost and enjoy the site!
for all questions, write ✉ [email protected]

emarket's People

Contributors

blago-white avatar

Stargazers

 avatar

Watchers

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