- Node
- Recommended IDE is JetBrains PhpStorm or WebStorm
- Install dependencies
npm install
- Install nodemon tool
npm install -g nodemon
- Start MongoDB container
docker-compose up -d
- Run App
npm start
- Use prepared Postman collection to call API.
- Allow source map generation in
tsconfig.json
file. - Run app in debug mode
npm run start:debug
- Create debug configuration in JetBrains PhpStorm/WebStorm.
- Configuration type: Attach to Node.js/Chrome
- Host: localhost
- Port: 9229
- Set breakpoints and start debugging from IDE.
You can seed database with prepared data if you want.
- Obtain your Redmine API Key and copy it to
apiKey
attribute inserviceDefinitions
array inseed.js
file. - Copy seed script into mongo container.
docker cp seed.js timer2ticket-core-mongo-1:/seed.js
- Run seed script in container.
docker exec -it timer2ticket-core-mongo-1 mongosh --file seed.js