egyangel / egyangel-TuApp_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express / React Starter

AppSeed.us - Full Stack web apps generator

Project Status:

  • Under development, incomplete documentation, active suport

Setting up a development environment

  • clone repo: git clone git@github.com:rosoftdeveloper/appseed.git
  • change directory to starter-express: cd appseed/starter-laravel
  • CMD composer install
  • 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
  • CMD: php artisan key:generate
  • CMD: php artisan migrate:fresh --seed to create tables and seed with data

Running the app

  • Go in the appseed/starter-laravel/public run in CMD php -S localhost:5000
  • 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"
	}
}

Trouble shooting

MIT License

Copyright (c) 2018 AppSeed.us | RoSoft

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About


Languages

Language:PHP 75.6%Language:HTML 17.0%Language:CSS 7.1%Language:Vue 0.2%