After you've made sure to have the correct things (and versions) installed just run:
npm install
Also, you should fill in the environment variables, you can copy the variables from example.env using the below command:
cp example.env .development.env
then you need to migrate your database and keep it synced with schema using the below command:
npm run migrate
and the final step is to run the seed script to fill your local database, for example creating an admin record:
npm run seed
to run the app in the development environment just run:
npm run dev
npm run debug
To build the app just run:
npm run build
To run the linter to auto-fix all the problems run:
npm run lint
To run the unit tests run:
npm run test
npm run test:debug
npm run test:watch
npm run migrate
To find spelling errors just run
npm run spell
If you wanted to add a new word so that it won't count as spelling error, just
add it to the configs/cspell/dictionary.txt
and separate with a new line
- if you are using vscode you can use Prisma
extension for autocomplete on
schema.prisma
file - if you are using vscode you can use Code Spell Checker
extension to check spelling error without running
cspell
script