Description: Backend and API Scripts for BCF 217 Bible Study Application
Authors: bfan1256, JDS0530
- Install Ruby
cd ./bible-processing
bundle install
ruby app.rb
- Download Zip Version of ElasticSearch from https://www.elastic.co/downloads/elasticsearch
- Unzip file
- cd into newly created folder and run
bin/elasticsearch
cd server
python create_es_index.py
- Install Python
cd ./server
pip install -r requirements.txt
cd server
- Download zip file from http://nlp.stanford.edu/data/glove.6B.zip
- Unzip zip file and move
glove.6B.200d.txt
toserver/files/
python server.py
cd server
- Simply run
pytest
from terminal and pytest will handle it all for you
cd server
- Run
gunicorn server:APP --preload -t 300 --log-file=- --workers=2
in terminal
cd firebase-functions/functions
npm install
cd firebase-functions/functions
firebase deploy --only functions
(To Deploy All Functions)firebase deploy --only functions:<function-name>
(To Deploy Certain Function)