Skip to content

diegodiogenes/challenge-evolux

Repository files navigation

challenge-evolux

Repository for the evolux challenge backend

The DER of application can be found here

Setup

For use this project, you should have installed Docker and [Docker Compose]

Running

For start the application, just run the follow command at the project root :

docker-compose up -d --build

The application will be running at http://localhost:8000

Running tests

To execute tests, run this command:

docker-compose -f docker-compose/development.yml run hercules-web ./init_config.sh

Routes

You can test this routes with Postman, just import the environment

The application has these routes:

  • Auth
    • Login: [POST] /user/login
  • User
    • Register: [POST] /user/
  • Currency
    • Index: [GET] /currency
    • Store: [POST] /currency
    • Update: [PUT] /currency/:id
    • Show: [PUT] /currency/:id
    • Delete: [DELETE] /currency/:id
  • Phones
    • Index: [GET] /phone
    • Store: [POST] /phone
    • Update: [PUT] /phone/:id
    • Show: [PUT] /phone/:id
    • Delete: [DELETE] /phone/:id