Git Product home page Git Product logo

bites_app's Introduction

BITES APP

Getting Started


Initials


  • Navigate to the location where the cloned project will be pulled into.
  • Use the command line to run git clone <code_url> whereby the code_url is found in github repo.
  • Navigate to the BITESAPP folder.
  • Initiate the command in the terminal to make a virtual environment. python -m venv venv
  • Install the requirements by using the command pip install -r requirements.txt.
  • Create the required db and user in psql and remember to change the DATABASES dictionary settings including HOST AND PORT in settings.py and PASSWORD, NAME and USER in .env file.
  • Make migrations python manage.py makemigrations.
  • Migrate python manage.py migrate.
  • In the terminal within the BITESAPP folder, create a superuser using the command python manage.py createsuperuser. Fill in the username, email and password.
  • Run the live-server python manage.py runserver.

Environment variables


  • Create .env file and place it into the same directory with settings.py
  • Final step is; Inside the .env file add the following lines:

SECRET_KEY=secret_key which is obtained by generating at djecrety
NAME=database_name
USER=user_name_db
PASSWORD=your_password

NOTE: Don't leave any spaces i.e it should be: NAME=my_project_db.
More information about django-environ can be found here at ZappyCode or in the official docs

bites_app's People

Contributors

e-manuei avatar danielspeki 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.