Note: WIP. Will update the README soon.
Open source project for digitizing the Suraj Prakash Granth. This app is more of an admin tool.
The most important thing you will find in here, is:
- The database and schema
- The things we return in the JSON
There was already the SPG repo. But, the truth is, it's much easier for us to work in Ruby on Rails.
We are restructuring the database to include:
- Dr. Bhai Vir Singh footnotes
- Custom footnotes
- Translations for Pauris (instead of individual lines)
- Richtext for footnotes
- Ruby 3.2.1
- Bundler 2.4.7
- sqlite3
- Clone the Repo
- Switch to Ruby version
3.2.1
e.g.rvm use 3.2.1
bundle install
rake db:prepare
Yes, I know this isn't a API or a minified Rails project; we may consider adding the front-end admin section on here, instead of the old SPG repo.
The number 1 goal should always be to be a slave of Sri Nanak Guru Gobind Singh Ji and make a beautiful application to honour the Maha Kavi Kaviraj Bhai Santokh Singh Ji and his masterpiece, Gurpratap Suraj.
Not pushing a crappy app. The code might be questionable, tho, lol.
- Finish manual entry, parsing for the Suraj Prakash Granth
.pdf
files - Recreate new DB that can support the main features (footnotes, unicode)
- Add content to DB, like things from Raas 12, etc.
(This is not in order. N'or is it a refined list).
- Can we use this database to replace the one on https://spg.dev/books
- [] Can we easily import chapters that have been translated, etc?
- [] Work with ShabadOS so we can researchers and scholars search engine access
- []x Work with Jonathon Collie to make the new SPG front-end app.
- Create a footnote, richtext editor.
This application is deployed with Fly.io, a platform that allows you to run your applications globally.
-
Fly.io account: As a maintainer, you need to have an account on Fly.io. You can sign up on their website.
-
Fly.io CLI: You need to have the Fly.io Command Line Interface (CLI) installed on your local machine. You can install it by following the instructions here.
-
Authentication: After installing the CLI, authenticate it with your account. The easiest way is by using your GitHub account. Run the following command in your terminal and follow the instructions:
flyctl auth github
-
Clone the repository: Make sure you have the latest version of the application code on your local machine.
-
Navigate to the project repository: Change your current directory to the project repository in your terminal.
-
Deploy: Run the following command to deploy the application:
flyctl deploy
The production database for this application is configured to use development.sqlite
. Therefore, the behavior of the application in the production environment will be identical to its behavior in the development environment.