This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run devOpen 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.
(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-schemaData updates can be sent to the database with:
npm run data-to-xataAdapted 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
| Name | Service |
|---|---|
| Xata | Database |
| ImageKit | Image hosting, optimization |
(in conjuction with next/image) & transformations |
|
| Prisma | Site hosting |
- Icons:
- background css: css-dividers
- next/image fix: https://dev.to/felixhaeberle/responsive-fix-for-the-next-js-image-component-1351
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.