Skip to content

iArtz/laravel-reset-api

Repository files navigation

How to run the API

Make sure you have PHP and Composer installed globally on your computer.

Clone the repo and enter the project folder

cd laravel-rest-api

Install the app

composer install
cp .env.example .env

Config database

DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/database.sqlite

Migrate

php artisan migrate --seed

Run the web server

php artisan serve

That's it. Now you can use the api, i.e.

http://127.0.0.1:8000/api/articles

Example here!

About

Laravel REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published