/filipov-beerstore-api

Beer Store - Java/SpringBoot | Training and PoC

Primary LanguageJavaMIT LicenseMIT

GitHub GitHub top language GitHub repo size Snyk Vulnerabilities for GitHub Repo

BeerStore - API

BeerStore is an API built for academic purposes.

Installation

Installation Mode in creation

Up Terraform (AWS)

$ ./run-terraform.sh

Up Ansible

$ ./run-ansible.sh

Access an instance in EC2

$ ssh ...

$ sudo docker service create --name beerstore -e SPRING_DATASOURCE_URL=jdbc:postgresql://URL_DO_RDS_DA_SUA_CONTA:5432/beerstore -p 8080:8080 --network service <NOME_IMAGEM>: --replice 3

Usage

import foobar

foobar.pluralize('word') # returns 'words'
foobar.pluralize('goose') # returns 'geese'
foobar.singularize('phenomena') # returns 'phenomenon'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT