Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mokira3d48/invoice-crud
Implementation of an invoice management program in PHP + MySQL using AJAX.
https://github.com/mokira3d48/invoice-crud
ajax boostrap5 datatable html-css-javascript mysql php
Last synced: 16 days ago
JSON representation
Implementation of an invoice management program in PHP + MySQL using AJAX.
- Host: GitHub
- URL: https://github.com/mokira3d48/invoice-crud
- Owner: mokira3d48
- License: mit
- Created: 2024-04-01T00:38:47.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-02T22:55:20.000Z (9 months ago)
- Last Synced: 2024-10-29T21:03:59.955Z (2 months ago)
- Topics: ajax, boostrap5, datatable, html-css-javascript, mysql, php
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# invoice-crud
![](https://img.shields.io/badge/lastest-2024--04--01-success)
![](https://img.shields.io/badge/programming-AJAX-yellow)
![](https://img.shields.io/badge/architecture-MVC-blue)Implementation of an invoice management program in PHP + MySQL using AJAX.
## Databse creation
```sql
START TRANSACTION;CREATE DATABASE IF NOT EXISTS crud_facture CHARACTER SET 'utf8';
CREATE USER IF NOT EXISTS sideproject IDENTIFIED BY 'motdepasse';
GRANT ALL PRIVILEGES ON crud_facture.* TO sideproject;USE crud_facture;
CREATE TABLE IF NOT EXISTS factures (
id INT AUTO_INCREMENT PRIMARY KEY,
customer VARCHAR(45),
cashier VARCHAR(45),
amount DECIMAL(12, 2),
received DECIMAL(12, 2),
returned DECIMAL(12, 2) DEFAULT '0.00',
`state` VARCHAR(16),
CONSTRAINT CK_FAC_STA CHECK (`state` IN ('Facturé', 'Payée', 'Annulée')),
CONSTRAINT CK_FAC_AMO CHECK (`amount` >= 0.0)
)ENGINE=InnoDB;COMMIT;
```
OR execute the following command line.
```sh
mysql -u root -p < database.sql
```## Start server
You can start the web server using the following command line.```sh
php -S 0.0.0.0:8080
```