Skip to content

abrahamuchos/invoice-api

Repository files navigation

Invoice

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.

✅ Features

  • 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)

⚙️ Tech Stack

  • Laravel 10.10
  • Postgre 14.12

💾 Installation

Install and run

  1. Clone and move to folder
$ git clone [email protected]:abrahamuchos/invoice-api.git
$ cd invoice-api
  1. Install dependecies
$  composer install
  1. Create a copy of the .env.example file and rename it to .env. Next, configure the necessary environment variables.

  2. Generate an application key by running php artisan key:generate.

  3. Run php artisan migrate to create the database tables.

  4. Run php artisandb:seed to create dummy data and admin user.

  5. Run php artisan serve to start the Laravel development server.

Environment Variables

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

Docs

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

🧑‍💻 Authors

📄 License

MIT

About

Invoice API - Laravel 10

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published