This is the boilerplate for creating an API server in AdonisJs, it comes pre-configured with.
- Bodyparser
- Authentication
- CORS
- Lucid ORM
- Migrations and seeds
Use the adonis command to install the blueprint
adonis new api-shop --api-onlyor manually clone the repo and then run npm install.
Use the adonis command to generate app_key
adonis key:generateRun the following command to run startup migrations.
adonis migration:runadonis seedadonis serve --dev