A simple React + Redux app designed to consume laravel-todo-api. Generated from react-redux-starter template.
Navigate to the project's root directory and run:
npm install
Create any of these .env
files:
ENV File | Description |
---|---|
.env | Default |
.env.local | Loaded for all environments except test |
.env.development | Loaded on npm start |
.env.production | Loaded on npm run build |
.env.test | Loaded on npm test |
Add these environment variables:
REACT_APP_NAME=Todo App
REACT_APP_API_BASE=http://localhost:8000/api
REACT_APP_SESSION_KEY=todo-app-session
Runs the app in the development mode.
Format all the code based on the prettier and linting configuration.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build
folder.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.