BOOM is a simple application to manage your books in a database.
- Install elixir/erlang using `asdf`
Information to install asdf can be found here
$ asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang
$ asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir$ asdf installor install Erlang and Elixir on your machine.
In the .env file environments vars needs to be defined for the local environments. Those need to be loaded when working with this project. To do so, one can manually execute:
source .envor automate this process using direnv.
# Install direnv using your package manager.
# From the project folder
$ direnv allowContinue with the instructions https://github.com/direnv/direnv#getting-started
- Install docker&docker-compose
Information to install docker can be found here Information to install docker-compose can be found here
Set up postgresql database:
$ docker network create boom_network
$ docker-compose upget http://localhost:4000/api/books/9780123456789 Content-Type: application/json
get http://localhost:4000/api/books Content-Type: application/json
get http://localhost:4000/api/books?limit=10&title=Sample Title Content-Type: application/json
Possible query params: - title - author - publisher - edition
post http://localhost:4000/api/books Content-Type: application/json
{ “ISBN”: “1234567890”, “title”: “Sample Title”, “author”: “The person who wrote this”, “publisher”: “BOOM books”, “edition”: “1” }
delete http://localhost:4000/api/books/1234567890 Content-Type: application/json
put http://localhost:4000/api/books/1234567890 Content-Type: application/json
{ “ISBN”: “1234567890”, “title”: “Edited title”, “author”: “Edited author”, “publisher”: “Edited Publisher”, “edition”: “New Edition” }
- Alfedi - initial work
- Ironjanowar - continued work
- FORGIS98 - continued work
- kamiyuzu - continued work
- rockneurotiko - continued work
To samgh96 for suggesting such an incredible name and not letting me keep the awful one.