git clone https://github.com/swapnil233/next-transcriptions.git
npm install
to get all the dependencies- Get an instance of Postgres running and create a database, name it whatever (eg "transcriptions").
- If you want to use Supabase to host the DB instead of your machine, make a DB in Supabase. The IPV6 connection strings will look like this (they can also be found in settings. The DB password will only be shown to you once upon creation):
DIRECT_URL="postgres://postgres.[YOUR-USERNAME]:[YOUR-DB-PASSWORD]@aws-0-ca-central-1.pooler.supabase.com:5432/postgres"
DATABASE_URL="postgres://postgres.[YOUR-USERNAME]:[YOUR-DB-PASSWORD]@aws-0-ca-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true&connection_limit=1"
- Create a
.env
file, and populate it with the data that's required, which is found in.env.example
- Run
npx prisma generate
andnpx prisma db push
to upload the schema into your DB and generate the types for the DB models. - Run
npm run dev
to start the nextjs project on port 3003 (you can change this inpackage.json
under thedev
script)