-
cd todo/frontend
-
npm i
-
Create
.env
file fromenv.example
-
cd todo/backend
-
npm i
-
Create
.env
file fromenv.example
-
npm run prisma:generate
-
Set up Prisma
-
Set the
DATABASE_URL
in the.env
file to point to your existing database.- If your database has no tables yet, read https://pris.ly/d/getting-started
-
Run
prisma db pull
to turn your database schema into a Prisma schema. -
Run
prisma generate
to generate the Prisma Client.- You can then start querying your database.
-
- On dashboard, click
New Project
- Select the git repository of the app
- Enter:
- project name:
(name)-frontend
- framework preset:
Next.js
- root directory:
frontend
- environment variables:
ACCESS_TOKEN_SECRET
- project name:
- Deploy
- On dashboard, click
New Project
- Select the git repository of the app
- Enter:
- project name:
(app name)-backend
- framework preset:
other
- root directory:
backend
- environment variables:
DATABASE_URL
ACCESS_TOKEN_SECRET
- project name:
- Deploy
test