This is an experimental API to manage invoices and clients. All this by managing your users (they must log in).
The API handles user permissions, thus allowing only the administrator (admin) to do certain actions against a basic user.
- Show users (only for admin)
- Show customers
- Show invoices
- Show customers with filters
- Show invoices with filters
- Create customers
- Create invoices
- Crete users (only for admin)
- Update customers
- Update invoices
- Delete customers (only for admin)
- Delete invoices (only for admin)
- Laravel 10.10
- Postgre 14.12
Install and run
- Clone and move to folder
$ git clone [email protected]:abrahamuchos/invoice-api.git
$ cd invoice-api
- Install dependecies
$ composer install
-
Create a copy of the
.env.example
file and rename it to.env
. Next, configure the necessary environment variables. -
Generate an application key by running
php artisan key:generate
. -
Run
php artisan migrate
to create the database tables. -
Run
php artisandb:seed
to create dummy data and admin user. -
Run
php artisan serve
to start the Laravel development server.
To run this project, you will need to add the following environment variables to your .env file
APP_FRONTEND_URL
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD
MAIL_MAILER
MAIL_HOST
MAIL_PORT
MAIL_USERNAME
MAIL_PASSWORD
MAIL_FROM_ADDRESS
Documentation Invoice API - Postman
Invoice API Collection - Postman
You can find a .json with the endpoints in /docs/Invoice API v1.0.0.postman_collection.json