Adonis API application
This is the boilerplate for creating an API server in AdonisJs, it comes pre-configured with.
- Bodyparser
- Authentication
- CORS
- Lucid ORM
- Migrations and seeds
Setup
Use the adonis command to install the blueprint
adonis new api-server --blueprint wxs77577/adonis-mongo-app
# or use `--cnpm`
adonis new api-server --blueprint wxs77577/adonis-mongo-app --cnpm
or manually clone the repo and then run npm install
.
Migrations
Run the following command to run startup migrations.
adonis migration:run