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 yardstick --api-onlyor manually clone the repo and then run npm install.
Run the following command to run startup migrations.
adonis migration:runRun the following commands to start the database container in docker
docker-compose updocker start #image hash, example: e5c4c50f45f2