Giter VIP home page Giter VIP logo

invoicing's Introduction

Laravel React invoicing

A real estate invoicing project created with laravel and react.

Demo

Please follow the guide for iinstallation.

  1. git clone
  2. update the .env file along with database connection
  3. composer install && composer update
  4. php artisan migrate
  5. php artisan db:seed
  6. yarn install

Set the App URL

Set the APP_URL in .env file (e.g)

APP_URL=http://localhost:8000

Set the APP Title

Set the APP_TITLE in resources/js/values/index.js

APP_TITLE='Your Blog Name'

Run PHP Dev Server

Either create a local dev url and map the link in webpack.mix.js file or open an other terminal window and copy paste the following command

php artisan serve

Run Node Engine

Compile assets one time.

yarn run dev

OR

if you would like to compile assets on runtime then copy paste following command in terminal

yarn run watch or yarn run watch-poll

###APIs

######Get all invoices

GET /api/invoices

Add filters
GET /api/invoices?q=invoiceable_type=user
GET /api/invoices?q=invoiceable_type=user&invoiceable_id=1
GET /api/invoices?q=invoiceable_type=user&invoiceable_id=1&status=pending
Load relations
GET /api/invoices?q=invoiceable_type=user&with=details
GET /api/invoices?q=invoiceable_type=user&with=details,user

#####Get stats

GET /api/invoices/stats
Create invoice
POST /api/invoices

params = [
  'type_id' => '5', // required
  'type' => 'lease', // required one of lease, property, user
  'status' => 'paid', // optional default pending
  'due_at' => '2019-01-01', // optional default today
  
  // details can be repeated
  'details[0][token]' => 'This is sample', // required
  'details[0][content]' => 'this is some sample content', // required
  'details[0][price]' => '400', // required
  'details[0][discount]' => '20', // optional default 0
  'details[0][quantity]' => '2', // optional default 1
]

TODO:

  • API for create invoice
  • API for listing invoice
  • API for filtering invoice based on entity, status, number
  • API Stats for total and vacant units, due and paid invoices
  • Frontend for invoice listing along with pagination
  • Frontend filters
  • Frontend States
  • Frontend CRUD for invoices
  • Test cases

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.