This API was created to demonstrate a fully fledged backend application built with Elixir and Phoenix including CRUD operations and authentication.
Features:
- Docker compose
- Authentication
- Database relationship
- CRUD.
To run this project, you will need to install the following dependencies on your system:
To get started, run the following commands in your project folder:
cp .env.sample .env
mix deps.get # installs the dependencies
mix ecto.create # creates the database.
mix ecto.migrate # run the database migrations.
mix phx.server # run the application.
Assuming that you have docker and docker-compose installed, just run:
docker build -t banking_api .
docker-compose up
You can get Insomnia here.
If you have postman or insomnia already installed, you can just import insomnia.json
and consume the API.
For Account endpoints you need replace the token for a new one generated in sign_in or sign_up
.
To run the tests for this project, simply run in your terminal:
mix test
This project uses mix credo --strict.