Skip to content

Biblink/biblink-backend

Repository files navigation

Biblya Logo

Biblya Backend

Build Status

Description: Backend and API Scripts for BCF 217 Bible Study Application

Authors: bfan1256, JDS0530

TODO List

Setup List

1. Ruby Setup

  1. Install Ruby
  2. cd ./bible-processing
  3. bundle install
  4. ruby app.rb

2. ElasticSearch Setup

  1. Download Zip Version of ElasticSearch from https://www.elastic.co/downloads/elasticsearch
  2. Unzip file
  3. cd into newly created folder and run bin/elasticsearch
  4. cd server
  5. python create_es_index.py

3. Python Setup (Must do ElasticSearch First)

  1. Install Python
  2. cd ./server
  3. pip install -r requirements.txt
  4. cd server
  5. Download zip file from http://nlp.stanford.edu/data/glove.6B.zip
  6. Unzip zip file and move glove.6B.200d.txt to server/files/
  7. python server.py

4. Running Python Unit Tests

  1. cd server
  2. Simply run pytest from terminal and pytest will handle it all for you

Optional: Using Gunicorn for Server

  1. cd server
  2. Run gunicorn server:APP --preload -t 300 --log-file=- --workers=2 in terminal

Firebase Functions Setup

Setting Up Environment

  1. cd firebase-functions/functions
  2. npm install

Deploying Functions

  1. cd firebase-functions/functions
  2. firebase deploy --only functions (To Deploy All Functions)
  3. firebase deploy --only functions:<function-name> (To Deploy Certain Function)

Resources

Server Hosting

Server Deployment

Firebase Functions

Cloud Firestore Functions

About

Backend and API Scripts for BCF 217 Bible Study Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •