Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

Laravel Logo

## 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"

}