This project was created with express-generator-typescript.
Run the server in development mode.
Run all unit-tests with hot-reloading.
Run a single unit-test.
Run all unit-tests without hot-reloading.
Build the project for production.
Run the production build (Must be built first).
Run production build with a different env file.
# lint
yarn lint
# lint tests
yarn lint:tests
# lint and fix fixable problems
yarn lint:fix
# lint (without fixing problems) and output JSON report
yarn lint:ci
- If
npm run dev
gives you issues with bcrypt on MacOS, you may need to run:npm rebuild bcrypt --build-from-source
.
- Ensure the
HOST
environment is correctly set to the host when accessing endpoints/resources hosted by the server. This is probably the domain name + port (e.g.,localhost:3000
,example.com
). If you access the frontend when it is hosted by the server (i.e., not running the frontend locally using Vite), then you can confirm this value by typingwindow.location.host
in your browser's console.