MasterTemple / CSCI-450-Group-Project-Backend

Backend server for https://github.com/MasterTemple/CSCI-450-Group-Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSCI-450-Group-Project-Backend

Back-end server for https://github.com/MasterTemple/CSCI-450-Group-Project

Setup

Install Python

Download found here.

Install MongoDB on your system

Instructions found here.

You may need to create a virtual environment

python3 -m venv <name of venv>
source <name of venv>/bin/activate

Install Python Packages

pip install -r requirements.txt

Create .env file with the following contents

EMAIL="lyric.of.lyrics.app@gmail.com"
APP_PASSWORD="CONTACT_ME_FOR_THIS"
LOGIN_CODE_EXPIRATION_MINUTES=5
AUTH_TOKEN_EXPIRATION_WEEKS=8
DB_NAME="lyric-of-lyric-db-001"
DB_URI="mongodb://localhost:27017/"

You can rename the .env.template file to .env and then fill in the APP_PASSWORD field.

Usage

Start Mongod

Make sure that the MongoDB background process is running

sudo systemctl start mongod
brew services start mongodb-community #(for macOS)

Run Python Server

python app.py

About

Backend server for https://github.com/MasterTemple/CSCI-450-Group-Project

License:MIT License


Languages

Language:Python 100.0%