-
Clone the repository:
git clone https://github.com/LeonardTarigan/dialink.git -
Navigate into the project directory:
cd ./dialink -
Install dependencies:
pnpm install
- Deploy the project to Vercel
- Once deployed, go to the project dashboard, navigate to Storage tab and create a new Postgres database
- Install Vercel CLI
npm i -g vercel@latest - Link the project to Vercel
You will be asked a few questions regarding the project setup
vercel link? Set up "./local_project_path"? [Y/n] y ? Which scope should contain your project? <vercel_account_username> ? Link to existing project? [y/N] y ? What's the name of your existing project? <deployed_project_name_on_vercel> - Pull the
.envfilevercel env pull .env - Migrate the database schema
npx prisma db push - Run the project
pnpm run dev
Notes:
- For better instruction on the database setup, watch the tutorial here
- To open the database editor, run
npx prisma studio