This is the boilerplate for creating an serverless API server in AdonisJs and Now.sh, it comes pre-configured with.
- Bodyparser
- Authentication
- CORS
- Lucid ORM
- Migrations and seeds
Use the adonis command to install the blueprint
adonis new yardstick --blueprint=MatheusMK3/serverless-adonis
or manually clone the repo and then run npm install
followed by adonis deployment:prepare
to configure your Now.sh project and alias.
For more details regarding usage, please refer to the following guide: https://blog.matheus.io/serverless-adonis-in-zeit-now/
Run the following command to run startup migrations.
adonis migration:run