https://github.com/tiagogouvea/php-lumen-react-login
Simple login/dashboard structure with php+lumen in backend and react in frontend
https://github.com/tiagogouvea/php-lumen-react-login
boilerplate lumen lumen-php-framework php php7 react reactjs
Last synced: 7 months ago
JSON representation
Simple login/dashboard structure with php+lumen in backend and react in frontend
- Host: GitHub
- URL: https://github.com/tiagogouvea/php-lumen-react-login
- Owner: TiagoGouvea
- Created: 2018-07-24T12:11:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T12:45:35.000Z (almost 8 years ago)
- Last Synced: 2024-12-28T18:55:11.901Z (over 1 year ago)
- Topics: boilerplate, lumen, lumen-php-framework, php, php7, react, reactjs
- Language: PHP
- Size: 178 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This is a simple PHP+Lumen+JWT API with React Front end project.
# Preparing and running
Clone repo:
```git clone https://github.com/TiagoGouvea/php-lumen-react-login```
## Setup backend
First you copy .envSample to .env and check all "DB_" values.
After that you can migrate database, and seed with some sample data:
```
cd backend
php artisan migrate
php artisan db:seed
```
Check the users table to see fake users. All of then will have "tiago" password.
## Start backend
On backend folder start your php:
```
php -S localhost:8000 -t public
```
## Setup frontend
Enter on frontend folder and install packages.
```
cd frontend
npm install
```
## Starting frontend
On frontend folder run:
```
npm start
```
Open your browser on [http://localhost:3000/dashboard](http://localhost:3000) to use it.
## What I haven't done
- Tests
- Use of redux or advanced state managment
- Setup docker