You should have
node >= ^14.*
npm >= ^8.*
Steps :
-
Fork this repository into your github account.
-
clone this repo into your local computer.
-
Backend Setup:
1.1 Go to
/serverand install all the packages/dependency by usingnpm iornpm installoryarn install( if you have yarn installed)1.2 Create a
.envfile1.3 Give these varialbe value
DATABASE_URL = "" NODE_ENV = development JWT_SECRET = "" REFRESH_JWT_SECRET = "" PORT = "" ORIGIN=http://localhost:3000 COOKIE_EXPIRATION_TIME =
1.4 In database URL make you give your postgres DB URL
1.5 Now Generate the DB by using this command
npx prisma generate1.6 Now Migrate The database using command
npx prisma migrate dev1.7 For Getting a better UI of your database you can use
npx prisma studio1.8 Now Run the server using
npm run dev