An open API service indexing awesome lists of open source software.

https://github.com/williamkoller/api-rest-revolution-beer

API Rest Revolution Beer development with Adonis.js v4
https://github.com/williamkoller/api-rest-revolution-beer

adonisjs api beer nodejs rest-api

Last synced: 2 months ago
JSON representation

API Rest Revolution Beer development with Adonis.js v4

Awesome Lists containing this project

README

          

### Requisits to run this project

- Docker
- Docker-compose

---

### Configuring /etc/hosts file

1. open file
- ` sudo nano /etc/hosts` or `sudo vim /etc/hosts`
2. Add this line at end of file
- `127.0.0.1 api.rest.revolution.beer`

### To run this project, follow the below steps

1. ##### Build Project
- `npm i`
- `docker-compose build`
2. ##### Seed database
- `docker-compose run api adonis seed`
3. ##### Run Project
\*`docker-compose up`

### after completed all steps above, jus click in the link
[API Rest Revolution Beer](http://api.rest.revolution.beer:3333)

#### Useful commands

> to access application container just run
> `docker-compose exec api /bin/sh`

> to run commands inside container just run

`docker-compose exec api `

> examples

- running adonis seed command
`docker-compose exec api adonis seed`

- running adonis migration refresh command
`docker-compose exec api adonis migration:refresh`

- running adonis migration refresh and seed command
`docker-compose exec api adonis migration:refresh --seed `