An opinionated boilerplate for Node web APIs focused on separation of concerns and scalability.
Notice that the boilerplate comes with a small application for user management already, you can delete it with a npm script after you understand how the boilerplate works but please do the quick start first! 😊
git clone --depth=1 https://github.com/talyssonoc/node-api-boilerplateconfig/database.js (there's an example file there to be used with PostgreSQL 😉 )yarn (click here if you don't have Yarn installed)config/database.jsnpm run sequelize db:migratenpm run sequelize db:seed:allnpm run devhttp://localhost:3000/api/users and you're ready to go!After playing a little bit with the boilerplate and before implementing a real application with it I recommend you to read at least the Setup and the Organization and architecture sections of our Wiki. After that you'll be able to remove the example application files running npm run cleanup
npm run sequelize db:migrate -- --env=testThis boilerplate comes with a collection of npm scripts to make your life easier, you'll run them with npm run <script name> or yarn run <script name>:
dev: Run the application in development modestart Run the application in production mode (prefer not to do that in development) test: Run the test suitetest:unit: Run only the unit teststest:features: Run only the features testscoverage: Run only the unit tests and generate code coverage for them, the output will be on coverage folderlint: Lint the codebasesequelize: Alias to the Sequelize CLIconsole: Open the built-in console, you can access the DI container through the container variable once it's open, the console is promise-friendly. Click here to know more about the built-in consolecleanup: Removes the files from the example applicationThis boilerplate is open to suggestions and contributions, documentation contributions are also important! :)
$ claude mcp add node-api-boilerplate \
-- python -m otcore.mcp_server <graph>