Coder Social home page Coder Social logo

sweetbakery's Introduction

Requirements

  • Python (3.5, 3.6, 3.7, 3.8)
  • Mysql (optional)

Installation

  • Create virtual environment(optional)
  • Install the dependencies and devDependencies
$ pip install -r requirements.txt
  • Copy sweet/settings_sample.py to sweet/settings.py
$ cp  sweet/settings_sample.py sweet/settings.py
  • Set DataBase Connection in sweet/settings.py
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'test',
        'USER': 'test',
        'PASSWORD': 'test@test',
        'HOST': '127.0.0.1',  # Or an IP Address that your DB is hosted on
        'PORT': '3306',
        'OPTIONS': {
            # Tell MySQLdb to connect with 'utf8mb4' character set
            'charset': 'utf8mb4',
        },
    }
}
  • Create Table In DataBase
$ python manage.py migrate
  • Create Super User
$ python manage.py createsuperuser
$ python manage.py runserver

Standard

####Naming in Projects

  • application (Plural => e.x: packages,users,...)
  • API VIew Method (request method => e.x: get,post,put,delete,...)
  • Class (PascalCase => e.x User)
  • method (camelCase => e.x: userLoginCount )
  • property or other variables (snake_case => e.x: user_login_count )

License

Pec

  • If You want more info like rest api request file Such as Postman Contact Us [email protected]

sweetbakery's People

Contributors

mahdi-ba avatar mohammadpoursaadat 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.