- Node js => v16
- Yarn or Npm
- Install dependencies
yarn
- Run
yarn dev
to run development server (will be available inhttp://localhost:9001
and GraphQL inhttp://localhost:9001/graphql
) - Create
.env
file based on.env.example
- Run
npx prisma migrate dev
to generate your databaseImportant
: Run this command for local database only. Do not ever run this on production. If you are using a shared developer database on cloud. Talk to your teammates before to run this command -- it might not be needed.- See Prisma Migrate for more detail
- Run
npx prisma studio
to have a bult-in database client
yarn start (or npm start)
: Run server in production modeyarn dev (or npm dev)
: Run server in development modeyarn build (or npm run build)
: Generate production build (files will be available onbuild
directory)yarn lint (or npm run lint)
: Run linter based on eslint configurationsyarn lint:fix (or npm run lint:fix )
: Run linter and fix errors