Skip to content
Laravel Boilerplate - Open-Source Starter
Branch: master
Clone or download
Latest commit 3fce8a2 Jul 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Initial Commit Jun 7, 2019
bootstrap Initial Commit Jun 7, 2019
config Initial Commit Jun 7, 2019
database Initial Commit Jun 7, 2019
public Initial Commit Jun 7, 2019
resources Initial Commit Jun 7, 2019
routes Initial Commit Jun 7, 2019
storage Initial Commit Jun 7, 2019
tests
.editorconfig Initial Commit Jun 7, 2019
.env.example Initial Commit Jun 7, 2019
.gitattributes Initial Commit Jun 7, 2019
.gitignore Initial Commit Jun 7, 2019
LICENSE Create LICENSE Jul 19, 2019
README.md Update README.md Jul 16, 2019
artisan Initial Commit Jun 7, 2019
changelog.md Initial Commit Jun 7, 2019
composer.json Initial Commit Jun 7, 2019
composer.lock Initial Commit Jun 7, 2019
package.json Initial Commit Jun 7, 2019
phpunit.xml Initial Commit Jun 7, 2019
server.php Initial Commit Jun 7, 2019
webpack.mix.js Initial Commit Jun 7, 2019

README.md

Laravel Boilerplate

Basic Laravel starter with JWT authentication and REST api


Open-Source Laravel Boilerplate - Product cover image.


Setting up a development environment

  • clone repo: git clone https://github.com/app-generator/laravel-starter.git
  • change directory to laravel-starter:
  • create a file named .env (copy .env.example file) which should contain the following default setup ( you should provide your own values to this variables ):
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=MY_DB_MANE
DB_USERNAME=MY_DB_USER
DB_PASSWORD=MY_DB_PASSWORD

JWT_SECRET=RuoxLtY4F3HvH3K0aVTkgLPTZu8IvlhJ
  • Exec composer install This cmd witll install all required dependencies
  • Exec php artisan key:generate to trigger laravel setup
  • Exec php artisan migrate:fresh --seed to create tables and seed with data

Running the app

  • Go in the public directory
  • Exec php -S localhost:3000 to start the server
  • Login route: /api/users/login [post: email, password],
  • Demo credentials email: demo@appseed.us, password: demo & demo2@appseed.us, password: demo

Test with POSTMAN first.

Headers Content-Type: application/json

Body/raw data:

{
	"user": {
		"email": "demo2@appseed.us",
		"password": "demo"
	}
}

Support

For issues and features request, use Github or access the support page provided by AppSeed


License

MIT @ AppSeed



Laravel Boilerplate provided by AppSeed

You can’t perform that action at this time.