A project to manage company bills
- LAMP/WAMP - Apache, MySQL and PHP 5.6+ on a Linux or Windows Machine.
- Composer - PHP dependency manager Get Composer
To install run
git clone https://github.com/kenzdozz/firmenprojekt.git
When this is done, run
cd firmenprojekt
composer install
Rename .env.example
to .env
and add the Database connection details
To create the required tables, run migration
composer run-script migrate:up
To seed some data into database run
composer run-script migrate:seed
To drop tables at any time, run
composer run-script migrate:down
To start the app run
composer run-script start
On your browser, a visit to http://localhost:8800/
takes you to the app. (You can change the port on composer.json).
A POST request to /create
with form data company_name, company_id, bill_amount, bill_purpose, payment_date
creates a new record and returns a JSON response object with properties status
response status code and data
the newly created record.
A POST request to /update/:id
with form data: any or all of company_name, company_id, bill_amount, bill_purpose, payment_date
updates the record with :id
and returns a JSON response object with properties status
response status code and data
the newly updated record.
A GET request to /delete/:id
will delete the record with :id
and returns a JSON response object with properties status
response status code and message
a success message.
MIT