8000 GitHub - totymedli/todolist: Todolist example with Laravel, React, Redux, Webpack in 2018
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

totymedli/todolist

Repository files navigation

Laravel + React + Redux Todolist

This repo holds an implementation for a todolist app writen with 2018 Q2 technologies.

Laravel React Redux Todolist SPA demo screenshot

Features

  • REST API to CRUD todos (with priority and due date) and users.
  • SPA communicating with the API, providing user registration, login and ability to create, list, update, delete todos.
  • Ordering todos by priority and due date.
  • Marking finished todos.

Technologies

Backend

Frontend

Install

Before executing each code snippet, make sure you cd back to the project's root folder!

For the backend You need to have Composer, Docker and Docker Compose:

composer install # Install PHP dependencies
php artisan key:generate # Generate an app key
cd laradock
docker-compose up -d nginx mysql phpmyadmin redis workspace # Start docker containers
docker-compose exec workspace bash # Login to the workspace container
artisan migrate # Run migrations to create database tables
artisan passport:install # Generate Passport Oauth tokens and clients
artisan app:copy-grant-credentials # Set oauth password grant client credentials for .env file 
exit
docker-compose ps # Check if anything is running well

For the frontend you need Node.js and NPM:

cd resources/assets/js/app
npm install # Install JS dependencies

To run the backend in dev mode, set APP_PROD=false in .env and keep running this in a console tab:

cd resources/assets/js/app
npm start

To run the backend in prod mode, set APP_PROD=true in .env then run the following command only and every time you make changes. This is similar to compiling:

cd resources/assets/js/app
npm run build

About

Todolist example with Laravel, React, Redux, Webpack in 2018

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0