An open API service indexing awesome lists of open source software.

https://github.com/mochrks/crud-laravel-api

implements a CRUD API using the Laravel framework. It includes Create, Read, Update, and Delete operations for defined entities with a clean and modular code structure.
https://github.com/mochrks/crud-laravel-api

laravel postgresql

Last synced: 3 months ago
JSON representation

implements a CRUD API using the Laravel framework. It includes Create, Read, Update, and Delete operations for defined entities with a clean and modular code structure.

Awesome Lists containing this project

README

          

CRUD API Laravel


Tech Stack Icons

### Project Overview

This project is a RESTful API for Order Management built using **Laravel**, utilizing **Composer** for dependency management, and **PostgreSQL** as the database. It provides comprehensive endpoints for managing orders, menus, carts, and vouchers.

### Tech Stack & Dependencies
![Laravel](https://img.shields.io/badge/Laravel-FF2D20?style=flat-square&logo=laravel&logoColor=white)
![PHP](https://img.shields.io/badge/PHP-777BB4?style=flat-square&logo=php&logoColor=white)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-336791?style=flat-square&logo=postgresql&logoColor=white)
![Composer](https://img.shields.io/badge/Composer-885630?style=flat-square&logo=composer&logoColor=white)

### Setup & Installation

- **Clone the repository**
```bash
git clone https://github.com/Mochrks/crud-laravel-api.git
cd crud-laravel-api
```

- **Install dependencies**
```bash
composer install
```

- **Configure Database**
- Rename `.env.example` to `.env` and update your PostgreSQL credentials:
```dotenv
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password
```

- **Generate application key**
```bash
php artisan key:generate
```

- **Run migrations**
```bash
php artisan migrate
```

- **Run the application**
```bash
php artisan serve
```

## Connect with me:
[![GitHub](https://img.shields.io/badge/GitHub-333?style=for-the-badge&logo=github&logoColor=white)](https://github.com/mochrks)
[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://youtube.com/@Gdvisuel)
[![Instagram](https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white)](https://instagram.com/mochrks)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/in/mochrks)
[![Behance](https://img.shields.io/badge/Behance-1769FF?style=for-the-badge&logo=behance&logoColor=white)](https://behance.net/mochrks)
[![Dribbble](https://img.shields.io/badge/Dribbble-EA4C89?style=for-the-badge&logo=dribbble&logoColor=white)](https://dribbble.com/mochrks)