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
https://ligapay.slack.com/messages/CGE844TRC/
- Instale o docker. (https://www.docker.com/products/docker-desktop)
- Na pasta raíz do projeto rode o comando:
docker-compose up
- Caso as tabelas no banco não sejam criadas rode o comando:
docker exec -it ligapay-adonis sh