Skip to content

thiiagoms/laravel-expenses-api

Repository files navigation

Expenses APi Management

Dependencies

  • Docker 🐳

Install

  1. Clone the repository and go to expenses directory:
git clone https://github.com/thiiagoms/laravel-expenses-api expenses
cd expenses
  1. Setup containers and install dependencies inside app container:
docker-compose up -d
docker-compose exec app bash
thiiagoms@e795fc12781f:/var/www$ composer install
  1. Copy .env.example to .env and generate application key:
thiiagoms@e795fc12781f:/var/www$ cp .env.example .env
thiiagoms@e795fc12781f:/var/www$ php artisan key:generate
  1. Run migrations and setup queue:
thiiagoms@e795fc12781f:/var/www$ php artisan migrate
thiiagoms@e795fc12781f:/var/www$ php artisan queue:work
  1. Generate swagger docs:
thiiagoms@e795fc12781f:/var/www$ php artisan l5-swagger:generate
  1. Go to:
  • http://localhost:8000/api/documentation - to see swagger docs

  • http://localhost:8000/api - to use application

Tests and lint

  1. To run tests and lint:
thiiagoms@e795fc12781f:/var/www$ php artisan tests
thiiagoms@e795fc12781f:/var/www$ composer pint app tests

About

💰 Expenses API Management with Laravel 11

Topics

Resources

Stars

Watchers

Forks

Languages