GithubHelp home page GithubHelp logo

chidimo / ethodoxy-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 12.57 MB

Electronic Orthodoxy

Home Page: http://ethodoxy.pythonanywhere.com

Python 17.77% HTML 2.06% Jupyter Notebook 21.83% CSS 22.97% JavaScript 35.37%
bible douay-rheims catholic orthodoxy ethodoxy

ethodoxy-api's Introduction

Ethodoxy API

Build Status Coverage Status Maintainability Test Coverage

Catholic Orthodoxy in electronic format

URLs

  1. Site: http://chidimo.github.io/Ethodoxy/
  2. API root: https://ethodoxy.herokuapp.com/api/v1
  3. Swagger documentation: https://ethodoxy.herokuapp.com/swagger/

Available endpoints

  1. https://ethodoxy.herokuapp.com/api/v1/versions/
  2. https://ethodoxy.herokuapp.com/api/v1/books/
  3. https://ethodoxy.herokuapp.com/api/v1/chapters/
  4. https://ethodoxy.herokuapp.com/api/v1/verses/
  5. https://ethodoxy.herokuapp.com/api/v1/commentary/

All API endpoint calls have a count key which tells the total number of results returned. The actual data is contained in the results key.

All results are paginated by 50 pages.

Recreating the database

It is possible to recreate the database on your local machine as the necessary .json files have been included in the drbo_data folder. The raw scrapped files are also available in the drbo_org_scrap folder.

  1. Clone the repo

  2. Run pipenv install and pipenv install --dev

  3. Run python manage.py migrate

  4. Optional. Create superuser with python manage.py superuser

  5. Optional. Create user with python manage.py user

  6. Both have the following optional arguments -email [email protected] -password dwarfstar

  7. Create a PostgreSQL database name ethodoxy-api.

  8. Set up the following environment variables

     DEBUG
     DJANGO_SETTINGS_MODULE=ethodoxy-api.settings.dev
     SECRET_KEY
     EMAIL_HOST_PASSWORD
     EMAIL_PORT
     ALLOWED_HOSTS=localhost
     DATABASE_URL
     DB_PASSWORD
    
  9. Set up Douay-Rheims bible database by running the following commands in order

     python manage.py create_version -name -location
     python manage.py create_ot
     python manage.py create_nt
     python manage.py create_chapters
     python manage.py create_verses
     python manage.py create_commentary # challoner commentary
    

Contributing

I haven't figured it out yet. Feel free to message me at [email protected]

Querying

  1. How to query verses

ethodoxy-api's People

Contributors

chidimo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.