GithubHelp home page GithubHelp logo

dhiru179 / laravel-rest-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from halimus/laravel-rest-api

1.0 0.0 0.0 675 KB

Laravel 5 REST API

PHP 95.16% ApacheConf 0.33% Vue 0.34% HTML 4.17%

laravel-rest-api's Introduction

A modern REST API in Laravel 5

Very sophisticated REST API using Laravel 5.4. You can find all what you need in this example to create an API of your dream.

We use in this Example :

The project is still under developement, you may find an update if you back later.

You can find ademo here :

https://demo.halimlardjane.com/laravel-rest

Installation Step by Step:

1- After you pull up the project, browse to the folder with your terminal and run:

> composer install

2- To generate Laravel key, in your Terminal run:

> php artisan key:generate

3- Create a Database in Your MySQL (choose a name, for example: librarydb)

4- Create an new file .env in the base folder containing a copy of the file .env.example, and update the cresential of databases connexion

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=librarydb
DB_USERNAME=root
DB_PASSWORD=

Make sure also to out at API_PREFIX=api in your .env file Like this

API_PREFIX=api
API_NAME="Laravel API"
API_VERSION=v1
API_DEBUG=false

5- To migrate the database, In your Terminal run:

> php artisan migrate

6- To fill the tables with some dummy data, In your Terminal run:

> php artisan db:seed

7- To run the server and test the API, In your Terminal run:

> php artisan serve

alt tag

8- Under construction...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.