Contains frontend and backend folders
Check out our Contributing Guide.
$ npm i
You first need to add the following files locally:
.env
file in frontend/prisma
- it should contain the following line: DB_URL="file:./dev.db"
dev.db
file in frontend/prisma
initial-data.ts
file in frontend/prisma
$ npm run dev
Navigate to localhost:3000
The convention is that anything in src/pages
, with an extension .page.tsx
becomes a publicly available page. NOTE nextjs also offers the ability to define custom routes with placeholder support - eg :id.tsx
if we will need it in the future.
We've added the .page
convention because we might want to add other files in pages
folder, that should not be accessible.
After you've run npm i
, make sure you run npm run db-generate
in order to generate the typescript types and db bindings needed for prisma.
Check that everything is ok by running npm run check-db