bain
bain copied to clipboard
A web app for reading the Bible with full emphasis on the God`s Word only. Sola scriptura
bain
This repository moved to Bolls-Bible organisation. Here it is -> https://github.com/Bolls-Bible/bain/
Setting up the repo
- clone the repo using git
git clone [email protected]:Bohooslav/bain.git
- enter the directory
cd bain/django/
- set up local enviroment. This is a very important step. For now I work with python 3.7 because of gcloud works only on that + it is more stable for now.
pipenv
pipenv shell
- install reqirements using pip
pipenv install -r requirements.txt
- run server (I am using 0 host for better debugging. You are free to use whatever you want)
python manage.py runserver 0:8000
- and go to http://0.0.0.0:8000/
- check if everything is correct and you do not see any error. You will not see any verse, because to do that you should have installed PostreSQL, create bd 'bain', run migrations and fill a table 'bolls_verses' with translations. Ask me to get the translations https:t.me/Boguslavv. Using pgAdmin or cmd, create a database
bain, than run migrations:
python manage.py makemigrations
python manage.py migrate
and then insert the translation there.
- the next step is to go to
./bolls/static/bolls/to install Imba dependencies
cd django/bolls/static/bolls/
npm install
- than watch the changes in files to compile them
npm run watch
After that you should be able to debug it.
Checklist before any deploy
- update sw.js
- npm run build
- git pull on server
- ./inject-secrets.sh
- ./deploy.sh
And do not forget to clean expired sessions sometimes
python manage.py clearsessions
Become a maintainer
You will get full access to Google Cloud project running the app backend, VPS with PostgreSQL database, abd this repo.