Git Product home page Git Product logo

buddhanexus

Backend for the Buddhanexus project.

Includes:

  • API (using fastapi)
  • ArangoDB (in docker)
  • Dataloader - loads texts into the database.

Guide:

1. Setup:

1.1: Install docker and docker-compose:

1.2 Obtain the project files:

Clone the project repository:

git clone https://github.com/ayya-vimala/buddhanexus.git && cd buddhanexus

1.3 Install our githooks:

This project uses pre-commit to maintain code style and format it using black.

  • First, pre-commit needs to be installed on your machine. Follow the installation instructions listed here.
  • You also need to have the Python version listed in the .pre-commit-config.yaml file installed (currently 3.7).
  • Navigate to the project root folder and run pre-commit install.
  • From now on, modified files will be formatted automatically.

2. Running:

  • First, open the .env.example file, copy it and name the copy .env.
  • Modify the variables in the .env file. If running online, choose a strong password for arangodb.
  • Run make run-dev. This will download docker images and start all services.

The API should now be accessible on port 8000.

The API Documentation is also available in the /docs folder. If running on a local machine, the address is [http://localhost:8000/docs].

3. Loading the segment data

So far the database is empty. To populate it, do the following:

  • (One-time) To initialize the database and create collections, run make create-db.
  • (Long running task) to load the data into arangodb, run make load-data.
Experimental feature:

There is also an additional command called make load-data-async, which speeds up the data loading process by running it in parallel. This might overload the database depending on system resources. The number of threads can be modified in the Makefile.

BuddhaNexus's Projects

js-ebt icon js-ebt

Javascript browser utilities for the Pali canon

segmented-pali icon segmented-pali

Segmented files for pali. These are the input files for the Buddhanexus neural network

segmented-tibetan icon segmented-tibetan

Segmented files for tibetan. These are the input files for the Buddhanexus neural network.

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.