Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

A web app which serves as a repository for exam question papers.

Notifications You must be signed in to change notification settings

Team-Tomato/QuestionPaper_Backend

Repository files navigation

web-app-Question-paper

Flask API serves questionpaper URL from the drive repository.

Setup for development

  1. Clone the repo to your local
git clone https://github.com/Team-Tomato/QuestionPaper_Backend.git
  1. Create or Activate your vitrual environment.
virtualenv env
source env/bin/activate
  1. Install the dependencies from requirements.txt
pip install -r requirements.txt
  1. Add or modify the .env file according to your local postgres database. Here is the example .env file. Leave the APP_SETTINGS as it is
APP_SETTINGS="config.DevelopmentConfig"
POSTGRES_URL="127.0.0.1:5432"
POSTGRES_USER="postgres"
POSTGRES_PW="password"
POSTGRES_DB="db-name"
EMAIL_USER="email_id"
EMAIL_PASSWORD="email_password"
RECEIVER_MAIL="email_id"
GITHUB_USER_NAME="Team-Tomato"
Token="Api_Token"
  1. Create the database in your local with your database name db-name adn start your local database server.
  2. Run the following commands to mirate the database.
python manage.py db init            #If prompts error, leave it.
python manage.py db migrate
python manage.py db upgrade
  1. Start the server,
python manage.py runserver
  1. Try hitting the end points for sample testing.

Note: If your changes adds some dependencies to the system, kindly update the requirements.txt file using pipreqs

pipreqs /path/to/project/QuestionPaper_Backend --force

About

A web app which serves as a repository for exam question papers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •