generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
NestJS Tips
Barrett Falk edited this page Sep 13, 2023
·
2 revisions
Scenario: You want to start a single docker service, like the database, but you want to start the backend and/or frontend via npm?
Try this!
docker-compose up -d database cd backend npm start cd .. cd frontend npm start
Scenario: You want to generate new CRUD classes?
Solution: use the nest cli
nest g resource {resource_name}
Still doesn't work? Try installing nest cli:
sudo npm install -g @nestjs/cli
Scenario: You want to generate the api spec via swagger
Solution: go to localhost:3001/api-json