In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:4000 to view the GraphQL playground in the browser.
You will need to manually reload if you make edits.
Launches the Jest test runner and prints the coverage report when done with tests.
Compiles typescript to javascript for production to the build
folder.
Your app is ready to be deployed!
Lints typescript code and log if there are any errors.
npm run lint:fix
should be used if you want to fix all autofixable errors and warnings.
In the project directory, you can also run:
This command will create all files and CRUD operations needed for starting new endpoint.
For example: node .\dev-commands\crudHelper.js c instrument
will initialize all GraphQL mutations and queries for creating, reading, updating and deleting an instrument.
💡 Keep in mind that you need to go through all the generated files and add the missing parts for specific case.
Happy coding! 👨💻