Next.js/React, Nest.js, React Native and TypeScript project;
Run the following commands:
yarn
yarn build
yarn dev
Create a .env file in the root folder and add the following variables: DATABASE_URL=postgresql://name:password@localhost:5432/brutal_barb JWT_SECRET=
Go to the backend folder and run the following command:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Cope the secret key and add it to the .env file.
npx prisma generate
npx prisma migrate dev
npx prisma db seed
Go to the frontend folder and run the following command: Create a .env file in the root folder and add the following variables: NEXT_PUBLIC_API_URL=http://localhost:4000
Check the need of rebuilding and/or restarting the server.