Skip to content

millnitzluan/banking_api

Repository files navigation

BankingApi

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.

Installing / Getting started

All services locally

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.

Docker compose

Assuming that you have docker and docker-compose installed, just run:

docker build -t banking_api .
docker-compose up

API Documentation Insomnia

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.

Tests

To run the tests for this project, simply run in your terminal:

mix test

Style guide

This project uses mix credo --strict.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published