Try creating a new NestJS project from template using: nest new example -p npm
.
Install the dependencies:
npm install
Build the project:
npm run build
Run the project with:
npm start
It should be available at localhost:3001.
Test the project using Jest:
# To run all the tests
npm test
# To run the e2e tests
npm test:e2e
# To run the unit tests
npm test:unit
Lint the project using ESLint:
npm run lint
# To fix the linting errors
npm run lint:fix