Skip to content

A site to share the own comments about bible versicles. Made with React in the frontend, Express in the backend.

Notifications You must be signed in to change notification settings

JDaniloC/Biblecomment

Repository files navigation

A web site to read and share comments about bible versicles. Over +500 comments in +150 chapters.


ADM

Motivation

I usually make notes in the bible in order to remember important aspects for understanding the text. With free time due to the pandemic of 2020, starting a comment in another bible and wanting to use the weekend hours in a useful way, the biblecomment was born, with the objective of sharing interpretations of the bible and answering difficult verses in an accessible and intuitive way.

Webscrapping using Python

To capture the bible chapters in ARA version, was used Selenium and BibleAPI to make a script that returns a json file with the versicles from biblia.com.br.

How to use

First, you need to install the requirements (selenium and requests).

cd scrapy
pip install -r requirements

You need a token from the BibleAPI to get more than 20 requests/hour/ip, because this requests returns how much versicles it's necessary to capture for each chapter. Fill the token variable at webscraping.py, and write the books to capture in the book_list variable, in the same file.

token = "YOUR TOKEN HERE"

book_list = []

This script captures all chapters of the chosen books and save json files in the chapters folder, adding the chapter amount in the book.json file.

Lastly, the reader.py file is to read the json file produced by this process, and the populatedb.py is used to populate the database with the data from chapters folder. It's necessary to fill the baseurl variable.

baseurl = "http://localhost:3333"

main

The backend server

It's required the npm to install yarn. To init the express server, enter in the backend folder, and run this command to install the node modules:

cd frontend
npm install yarn
yarn

Finally run this command to start the development server, currently the project is using Node v16, so if you need to use the new version, downgrade or access this solution

To migrate

npx knex migrate:latest
yarn dev

The web site

It's required the npm to install yarn. To init the react, enter in the frontend folder, and run this command to install the node modules:

cd frontend
npm install yarn
yarn install

In the same directory you can run the developer server using:

yarn start

A Program Violin for His Glory ~ Jennifer Jeon <3

About

A site to share the own comments about bible versicles. Made with React in the frontend, Express in the backend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published