This is the boilerplate for creating an API server in AdonisJs, it comes pre-configured with.
- Bodyparser
- Authentication
- CORS
- Lucid ORM
- Migrations and seeds
- Adonis ACL
- Adonis Validators
- URL Parse
- Postgres
- Adonis Mail
- Procfile - Heroku
- Helper Functions
- Ally - Social Auth
- Adonis Drive
- Administration Seeder
- Recovery Password
Install Adonis CLI global package.
npm i -g @adonisjs/cli
Manually clone the repo and then run
yarn install
Run the following command to run startup migrations.
adonis migration:run
To rollback migrations you can run this command.
adonis migration:rollback
To seed your applications with initial data, run this command.
adonis seeds
Run the following command to run startup the server.
adonis serve --dev