This project was created with express-generator-typescript.
Remove the existing node_modules/ folder, package-lock.json, and reinstall all library modules.
Run the server in development mode.
IMPORTANT development mode uses swc for performance reasons which DOES NOT check for typescript errors. Run npm run type-check to check for type errors. NOTE: you should use your IDE to prevent most type errors.
Run all unit-tests.
Run a single unit-test.
Check for linting errors.
Build the project for production.
Run the production build (Must be built first).
Check for typescript errors.
- If
npm run devgives you issues with bcrypt on MacOS you may need to run:npm rebuild bcrypt --build-from-source.