To get started with your own development, you will need the following prerequisites:
- A Vercel account
- Basic knowledge of Git and NPM
Please note that you are free to use your own preferred deployment and storage services. For the purpose of this project, we have chosen to use Vercel and its storage services (Vercel Postgres, Vercel Blob) for ease of deployment.
- Fork this repository using these steps
- Import the forked repository to Vercel using these steps
- Add the following environment variable during the import process
# Key: AUTH_SECRET
# Value:
openssl rand -base64 32- Follow the steps in this guide to create and connect Vercel Postgres to your project (similar steps for Vercel Blob)
- Clone the forked repository into your local drive
- Open up your command line and navigate to the project directory
- Create a local environment variable file
.env.localwith the following key-value retrieved from Vercel.com > Your project > Settings > Environment Variables
POSTGRES_URL=""
POSTGRES_PRISMA_URL=""
POSTGRES_URL_NO_SSL=""
POSTGRES_URL_NON_POOLING=""
POSTGRES_USER=""
POSTGRES_HOST=""
POSTGRES_PASSWORD=""
POSTGRES_DATABASE=""
BLOB_READ_WRITE_TOKEN=""
AUTH_SECRET=""
Alternatively, you may use the Vercel CLI and directly pull the environment variables from the deployed project (requires additional set up)
vercel env pull- Install the project dependencies and generate Prisma client
npm installAt this point, you should have correctly configured the deployed project on Vercel and the local project environment
- Push the database schema and seed the database with some initial values
npx prisma db push
npx prisma db seed- Finally you can view the deployed project or run a local development
npm run dev
# Open http://localhost:3000 with your browser