Coder Social home page Coder Social logo

vineeth030 / laravel-spa-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jishcem/laravel-spa-api

0.0 1.0 0.0 76 KB

An API built in Laravel for Single Page Applications - uses Dingo and JWT

PHP 98.92% Batchfile 0.02% JavaScript 0.50% ApacheConf 0.55%

laravel-spa-api's Introduction

Laravel API built for Single Page Applications.

This is a Laravel API boilerplate for kickstarting the developement.

Requirements: Any laravel developement envirornment

Insallation:

$ git clone https://github.com/jishcem/laravel-spa-api.git
$ cd laravel-spa-api.git
$ composer install

Create a .env file in the project root. And copy the contents of the .env-example to the newly created file.

I preffered using mysql in this, if you want to follow the same, Create a new database, and assign the database credentials and name to the DB_DATABASE, DB_USERNAME, DB_PASSWORD

If you want to see the emails in action, sign up for https://mailtrap.io/ and get the smtp credentials from the inbox page of mailtrap. And also update the MAIL_USERNAME and MAIL_PASSWORD

Now run these commands in the project root,

$ php artisan key:generate
$ php artisan migrate

Assuming you start the web server and have the URL http://laravel-spa-api.dev working, you are ready with the API.

If you go to the the url http://laravel-spa-api.dev/api/task and see

{"error":"token_not_provided"}

We have finished setting up the API.

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.