In order to run app locally you should have Node.js version > 18.17
- install dependecies
npm install
# or
yarn install
-
Add
.env.local
file with required environments variables -
Create file for DB for local purposes
touch ./prisma/dev.db
- Configure database
npx prisma migrate dev
# then
npx prisma db push
# then
npx prisma generate
- Run application in development mode
npm run dev
# or
yarn dev
npx prisma migrate dev --name migration_name
prisma db push
- Employed virtualized lists in order to avoid unnecessary resource consumption
- Employed debounce in order to avoid triggering API calls or other computations too often
- Applied database indexes for faster records lookup in Database
- Do not store critical user information in app's database by using OAuth protocol