Giter Site home page Giter Site logo

loginapi's Introduction

TEAM MIRAGE

Setup, Installation and Contribution Instructions

Prerequisites

  1. Ensure you have python3 version >=3.8 installed. To find out about this, Open a command prompt or terminal and type python3 -v.
  2. You have a text editor (preferably VScode) installed on your computer
  3. You have mysql set up as it is what we will be using

Contributing Rules

  1. Clone repository
git clone   [email protected]:hngx-org/Mirage-food-backend.git 

or

git clone https://github.com/hngx-org/Mirage-food-backend.git
  1. Checkout to a branch using the following format ft-(e.g git checkout -b ft-getallusers)

NOTE: All Pull requests should be made toward the development branch.

Create and Activate Virtual Environment

Navigate into the folder you cloned the project

python3 -m venv virtual
source virtual/bin/activate

Ensure that this file is hidden inside the gitignore

Create dotenv file for storing secrets and credentials

touch .env

Ensure that this file is hidden inside the gitignore

Sample dotenv file will have the following structure:

SECRET_KEY='secret'
DB_NAME='mydb'
DB_USER='user'
DB_PASSWORD='pass123'

Configure your project secrets and credentials in this file

Install Dependencies

pip3 install -r requirements.txt

or

python3 -m pip install -r requirements.txt

Setup Database

SetUp your Database and add the Db name, password and user to your dotenv file Now Migrate

python3 manage.py migrate

Run the application

python3 manage.py runserver

Open the application on your browser 127.0.0.1:8000.

Making a Commit

Ensure to follow these steps when committing:

  1. git add .
  2. git commit -m <message here>
  3. git pull origin development
  4. git push origin

Opening a Pull request

  1. Go to github
  2. Open a new Pull Request to the Development Branch and not the Main Branch.

Technology used

loginapi's People

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.