uncleabbey / fva

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fva Build Status Coverage Status

Food Vendor Backend App

This is Venture Gardens Group(VGC) Internship capstone project for backend interns (Python/Django Stack)

Documentation for the project can be found Here....

How to run locally

  • clone the repo using git clone https://github.com/uncleabbey/fva
  • Set a virtual environment using virtualenv or venv or pipenv
  • run pip install -r requirements.txt to install needed dependency
  • create a .env file and create env variables like
DEBUG=True
DATABASE_URL=_postgress_database_url
SECRET_KEY=your_secret_key
  • run python manage.py migrate to migrate the tables
  • run server using python manage.py runserver

How it Works

Register a new user using Customer Registeration or [Vendor Registration] (https://kayode-foodvendor.herokuapp.com/api/auth/signup/vendor)

After logging in successfullly, copy the token in the response and goto Swagger Documentations and paste the token inside the Authorize button to get access to protected routes. for example

Token 6d377b5837123e984bada0a90dba4e0a54510afcc11db4016466e40913259579

Note: It is important to type Token and a space before pasting the header

If you are using CoresAPI Documentation Just After setting the password, navigate to basic authentication
and input your correct username and password to access protected routes

or quickly use the following test users for quick Login if you don't want to go through registration stress

Vendor email: johndoe@gmail.com password: some_strong_password

Customer email: janedoe@gmail.com password: some_strong_password

If you have any question using this app, contact Phone Number: 07069388069 or Email: kayodegabriela@gmail.com

About


Languages

Language:Python 96.3%Language:HTML 3.7%