generated from nestjs/typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
1. Setup
Chabardes edited this page Jun 3, 2022
·
14 revisions
git clone git@github.com:pchab/nest-ddh-dojo.git
- Install the packages
npm install
- Create a db
createuser -s postgres
createdb dojo
- Create a .env file with the db configuration
POSTGRES_DB=dojo
POSTGRES_USER=postgres
- Run the Typeorm migrations
npm run typeorm:migration:run
npm run start:dev
That's it, the server is running. Take a look at the package.json
file to see the available scripts: lint, tests ...
With the command palette ⌘⇧P
, you can switch the auto-attach feature to the smart mode. Then, if you start the server in a VSCode terminal, you will be able to add breakpoints to your code. This is most useful if you need to understand what's going on when the code is running.
Get the DDH Dojo collection and pull its latest snapshot.
You can test your GraphQL requests with Insomnia.
You can preview the mermaid graphs directly in VSCode with the Markdown Preview Mermaid Support extension.