This repository has been created to solve Peiky's Backend Developer Test. The solution has been made with Elixir's Phoenix Framework (Official website: http://www.phoenixframework.org/).
In order to run this repo you must have installed the following software:
- Docker: https://docs.docker.com/install/
- Erlang: http://erlang.org/doc/installation_guide/INSTALL.html
- Elixir: https://elixir-lang.org/install.html
- Postman: https://www.getpostman.com/downloads/
- Clone this repository
https://github.com/AFU92/sales_admin.git
- Run a docker container of a postgres with postgis image
docker run --name some-postgis -p 5432:5432 -d mdillon/postgis
- Go to the cloned repository folder
cd sales_admin
- Change the values of the SalesAdmin.Repo config in the file config/dev.exs according to the params sended in the postgres container creation
- Install dependencies with
mix deps.get
- Create, migrate and run seeds to your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
Now the app must be running. You can test the endpoints importing SalesAdmin.postman_collection.json in postman