Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jezbravo/laravel-crud-api
Basic backend CRUD with Laravel
https://github.com/jezbravo/laravel-crud-api
composer crud crud-application laravel mysql php railway
Last synced: 25 days ago
JSON representation
Basic backend CRUD with Laravel
- Host: GitHub
- URL: https://github.com/jezbravo/laravel-crud-api
- Owner: jezbravo
- Created: 2024-05-09T12:29:25.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-19T03:06:47.000Z (6 months ago)
- Last Synced: 2024-09-30T22:40:57.230Z (about 1 month ago)
- Topics: composer, crud, crud-application, laravel, mysql, php, railway
- Language: PHP
- Homepage: https://laravel-crud-api-production-816a.up.railway.app
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## Description
This is a basic CRUD application to, in this case, organize information about students.
### Stack
- PHP
- Composer
- Laravel
- MySQL
- Railway## Setup
First of all you must clone the repository:
```sh
git clone https://github.com/jezbravo/laravel-crud-api.git
cd laravel-crud-api
```Then install the dependencies:
```php
php artisan install:api
```And run the db migration:
```php
php artisan migrate
```Once everything is ready:
```php
php artisan serve
```## Demo
As this is a backend-focused application, it does not have its own frontend graphical interface for client interaction yet. Instead you can try the different requests using services like Postman to the following routes:
GET, POST:
https://laravel-crud-api-production-816a.up.railway.app/api/students
---
GET, PUT, PATCH, DELETE:
https://laravel-crud-api-production-816a.up.railway.app/api/students/{id}
Here is an example template with the required fields for the request body:
{
"name": "test_user_name_0",
"email": "[email protected]",
"phone": "0123456789",
"language": "en"
}