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
- Host: GitHub
- URL: https://github.com/williamkoller/api-rest-revolution-beer
- Owner: williamkoller
- Created: 2020-10-16T02:42:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-16T03:43:51.000Z (over 5 years ago)
- Last Synced: 2025-05-29T21:06:44.871Z (about 1 year ago)
- Topics: adonisjs, api, beer, nodejs, rest-api
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 `