Giter VIP home page Giter VIP logo

restfulapi's Introduction

Build Status Total Downloads Latest Stable Version License

About REST API

REST APIs are useful for all kinds of apps. They can be the back-end to a front-end web app, they can store data for a mobile app, or they can provide services to other apps or APIs. There are a lot of moving pieces to coding a RESTful API, but having the right tools can make it a lot easier. Laravel is one such tool—a great platform for building REST APIs.

install

1, Clone project:
    git clone https://github.com/hungltph03955/RESTfulAPI.git 
 
2, Switch to the repo folder:
    cd RESTfulAPI

3, Install composer:
    composer install

4, Coppy or save .env.example to .env:
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=your_database_name
    DB_USERNAME=your_username(ex: root)
    DB_PASSWORD=your_password

5, Migrate database:
    php artisan migrate 
    
6, Seeding data:
    php artisan db:seed

7, Start server:
    php artisan serve --port=3000

8, Open check api doc:
    
    postman import file restfulapi.postman_collection.json

restfulapi's People

Contributors

hungltph03955 avatar

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.