Add evironmental variables shown below before start
backend/.env
DATABASE_URL="file:./dev.db"frontend/.env.local
NEXT_PUBLIC_API_URL=http://localhost:4000Run this commands from root directory
cd backend
npm install
npx prisma migrate dev --name init
npm run devYou'll see:
Server runs on http://localhost:4000
Run this commands from root directory
cd frontend
npm install
npm run devYou'll see:
App runs on http://localhost:3000