This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.
- Bodyparser
- Session
- Authentication JWT
- Web security middleware
- CORS
- Edge template engine
- Lucid ORM
- Migrations and seeds
- Resource controller
- ESLint
- Prettier
- JSDoc
- Swagger
Clone the repo and then run npm install
.
Run the following command to run startup migrations.
adonis migration:run
adonis serve --dev
http://127.0.0.1:3555/api-docs/
###
POST {{host}}/register
Content-Type: application/json
Accept: application/json
{
"username": "test",
"email": "test@test.com",
"password": "test"
}
###
POST {{host}}/oauth/token
Content-Type: application/json
Accept: application/json
{
"email": "test@test.com",
"password": "test"
}
> {% client.global.set("auth_token", response.body.token); %}
###
GET {{host}}/users
Content-Type: application/json
Accept: application/json
Authorization: Bearer {{auth_token}}
###