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-only
or manually clone the repo and then run npm install
.
Run the following command to run startup migrations.
adonis migration:run
Pronto!!!
Com esse token de autenticação que é gerado no login vamos conseguir validar nas requisições que precisam de autenticação, como um cadastro de simples, se o usuário é válido e está autenticado em nossa aplicação, primeiro projeto iniciando quem quiser contribuir so da um fork no repositorio.