This is Ditsmod starter.
Start in development mode:
npm run start:devYou can check the server operation using curl:
curl -i localhost:3000/api/helloOr simply by going to http://localhost:3000/api/hello in your browser.
By default, the application works with info log level. You can change it in the file src/app/app.module.ts.
Start in production mode:
npm run build
npm run start-prodFrom second terminal, check work:
curl -i localhost:3000/api/hello
curl -i localhost:3000/api/throw-error
curl -i localhost:3000/api/body -d '{"one":1}' -H 'content-type: application/json'
# Use controller as singleton
curl -i localhost:3000/api/hello2
curl -i localhost:3000/api/throw-error2
curl -i localhost:3000/api/body2 -d '{"one":1}' -H 'content-type: application/json'You can see more example usage in ditsmod repository
The file AGENTS.md is intended for AI agents and should be placed in the root directory of the repository. This file will be taken into account by the AI agent every time you interact with the agent. To copy the latest version of AGENTS.md, run the following command:
cd my-app # Go to starter repository
npm run setup:agentsAdditionally, you can install AI agent skills to help them better understand the specifics of Ditsmod applications:
npx skills add ditsmod/agent-skillsThis command will let you choose from all available skills. If you already know which skill you need, you can install it like this:
npx skills add ditsmod/agent-skills --skill ditsmod-module-compositionAI agent skills are only loaded when needed, when you ask something relevant to them.