Skip to content

aminahbl/vinaya

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Dev notes

Sources

Data

(At least during prototyping) project data lives in data/v0/json/db_* files and is taken as the source of truth.

The data schema is stored in data/v0/schema.json which is maintained in and generated by data/v0/generateSchema.js. After editing the schema (in generateSchema.js), update both the json file and Xata with:

npm run update-schema

Data updates can be sent to the database with:

npm run data-to-xata
Rule id anatomy:

Adapted from SuttaCentral ids.

  • anatomy: {root lang}-{tradition}-{rule set}-{rule category #}-{category prefix + rule number}
  • example: pli-tv-bi-1-pj001
  • example expantion:
    Part Value
    lang Pali
    tradition Theravada
    rule set bhikkhuni
    rule category no. 1
    category prefix
    & rule # with pj001
    trailing zeros

Services

Name Service
Xata Database
ImageKit Image hosting, optimization
(in conjuction with next/image) & transformations
Prisma Site hosting

Libraries, tools & tips

Learn More about Next.js

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Dev site for vinaya studies project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published