Giter Club home page Giter Club logo

laravel-react-bootstrap's Introduction

Laravel React To Do App

An example To Do App built with Laravel and React. It includes:

Use it as a base for quick prototypes or to learn from. Suggestions, recommendations, and pull requests welcome!

Demo Site

View a demo of the app at laravelreact.com.

(Password resets will not be sent from this server. Data will be cleared on a regular basis.)

Development Environment

This project runs on a LEMP stack (Linux, NGINX, MySQL, & PHP).

The backend built with Laravel. The frontend is 100% React.

If you don't already have a LEMP environment running, Valet is a good option for OSX.

Set Up

Clone the repository:

git clone https://github.com/devinsays/laravel-react-bootstrap

Create your environment file:

cp .env.example .env

The app key is used to salt passwords. If you need to work with production data you'll want to use the same app key as defined in the .env file in production so password hashes match.

Update these settings in the .env file:

  • DB_DATABASE (your local database, i.e. "todo")
  • DB_USERNAME (your local db username, i.e. "root")
  • DB_PASSWORD (your local db password, i.e. "")
  • HASHIDS_SALT (use the app key or match the variable used in production)

Install PHP dependencies:

composer install

If you don't have Composer installed, instructions here.

Generate an app key:

php artisan key:generate

Generate JWT keys for the .env file:

php artisan jwt:secret

Run the database migrations:

php artisan migrate

Install Javascript dependencies:

npm install

If you don't have Node and NPM installed, instructions here.

Run an initial build:

npm run development

Additional Set Up Tips

Database Seeding

If you need sample data to work with, you can seed the database:

php artisan migrate:refresh --seed --force

Read more in /docs/database-seeds.md.

Seeded User

After seeding the database, you can log in with these credentials:

Email: [email protected] Password: password

Email Driver

Laravel sends emails for password resets. The default for MAIL_DRIVER in .env.example is log. You can view logged emails in storage/logs/laravel.log.

Other Notes

Internal Docs:

Laravel Docs:

https://laravel.com/docs/

Valet Tutorial:

https://scotch.io/tutorials/use-laravel-valet-for-a-super-quick-dev-server

laravel-react-bootstrap's People

Contributors

devinsays avatar victorlitvinenko avatar logan2d 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.