Coder Social home page Coder Social logo

firmenprojekt's Introduction

Firmenprojekt

A project to manage company bills

Instructions to install

Requirements

  • LAMP/WAMP - Apache, MySQL and PHP 5.6+ on a Linux or Windows Machine.
  • Composer - PHP dependency manager Get Composer

Installing

To install run

git clone https://github.com/kenzdozz/firmenprojekt.git

When this is done, run

  • cd firmenprojekt
  • composer install

Setting up

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

Usage

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.

Licence

MIT

firmenprojekt's People

Contributors

kenzdozz avatar

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.