Skip to content

lovecoding-git/laravel-react-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jovert Lota Palonpon
Apr 10, 2019
25a62fa · Apr 10, 2019
Apr 10, 2019
Apr 10, 2019
Nov 5, 2018
Apr 10, 2019
Apr 4, 2019
Mar 27, 2019
Apr 10, 2019
Apr 7, 2019
Jan 15, 2019
Apr 7, 2019
Mar 26, 2019
Mar 6, 2019
Nov 5, 2018
Apr 6, 2019
Apr 5, 2019
Apr 9, 2019
Nov 5, 2018
Mar 24, 2019
Mar 23, 2019
Mar 23, 2019
Jan 29, 2019
Apr 7, 2019
Mar 7, 2019
Mar 24, 2019
Nov 5, 2018
Apr 10, 2019
Apr 10, 2019
Apr 7, 2019
Apr 7, 2019
Apr 7, 2019
Mar 24, 2019
Apr 1, 2019
Apr 1, 2019
Mar 23, 2019
Apr 10, 2019
Nov 5, 2018
Mar 26, 2019

Repository files navigation

About Laravel React Admin

This is a scaffolding project that comes with authentication & users CRUD. It is a Single Page Application (SPA) built on top of React.js in the frontend & Laravel in the backend.


Features

  • Progressive Web App (PWA)
  • Supports multiple locales
  • Stateless authentication system
  • Datatables with server-side pagination, sorting & dynamic filtering
  • Undo common actions
  • Docker ready
  • Image Intervention integration for image uploads

Preview

You can check out the live preview


Quick Start

  1. Clone the repo git clone https://github.com/palonponjovertlota/laravel-react-admin.git.
  2. Go to your project folder from your terminal.
  3. Run: composer install and npm install to install application dependencies.
  4. Copy the env.example file into a .env file and then configure based on your local setup.
  5. Installation is done, you can now run: php artisan serve then npm run watch.
  6. The project will run in this URL: (http://localhost:3000).

Using Docker

If you prefer Docker, there is a working setup provided to get you started in no time. Check your local setup to make sure that running this app in docker will work correctly:

For Unix Based Operating Systems, Give It Proper Permissions

If you are a Linux / Mac user, make sure to give the application proper file permissions. The php-fpm image uses www-data as its default user:

cd ~/your_projects_folder

sudo chown ${USER}:www-data -R laravel-react-admin

Localhost Should Be Freed

Make sure that the address 127.0.0.1:80 usually localhost is available on the host machine. It must be assured that apache2, nginx or any http webserver out there is not running on the host machine to avoid address and port collision.

Add a custom host

To make this app run on docker you must add a custom host address pointing to localhost or 127.0.0.1.

Add a virtual host

A nginx.conf.example file is included inside .docker/webserver to help you in configuring a virtual host according to your host setup. It is better to just rename it to nginx.conf to avoid the file being included in your version control system. Nginx will automatically pick up every changes to this configuration file because it is bind-mounted into its container.

You are good to go

You can now run the image using the docker-compose up and optionally pass the --build flag if you intend to build the image. The app can be visited here http:your_custom_host_address.

Installing PHP & NPM dependencies

In development, do note that all files inside this app is bind-mounted into the container, docker will just use the existing directories, in our concern the vendor and node_modules. Here is an example of running a composer install command: docker container exec -it laravel-react-admin-php-fpm composer install --no-interaction --no-plugins --no-scripts.

Running Artisan Commands

You can run any artisan commands directly into the laravel-react-admin-php-fpm container. Here is an example of a migration command: docker container exec -it laravel-react-admin-php-fpm php artisan migrate:fresh --seed.

What about webpack?

As we are bundling frontend assets with webpack under the hood, you must specify the custom host address where the application runs in docker so that webpack can proxy that to be able to develop using docker. You can pass a --env.proxy flag when running for example the npm run watch command: npm run watch -- --env.proxy=http:your_custom_host_address.


Credits

Without open source, this project will not come this far. Below are the list of technologies that the project uses:

The application use it as its backend framework.

The application use it as its frontend framework.

The application uses it in bundling up different assets such as JavaScript, Sass, images, fonts and more.

The frontend of the application is designed using this UI kit.

Used in deploying the application in multiple environments (development and production).

Used as the application's http webserver both in development & production.


Special Thanks

  • @reeshkeed for designing the logo & design ideas.

About

Fully featured dashboard template

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.3%
  • HTML 1.8%
  • Other 0.9%