https://github.com/cemutku/react-redux-shopping-cart-example
Simple react-redux example
https://github.com/cemutku/react-redux-shopping-cart-example
docker react reactredux redux
Last synced: 3 months ago
JSON representation
Simple react-redux example
- Host: GitHub
- URL: https://github.com/cemutku/react-redux-shopping-cart-example
- Owner: cemutku
- Created: 2019-12-20T09:54:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-24T11:05:06.000Z (about 5 years ago)
- Last Synced: 2025-02-14T23:51:29.974Z (4 months ago)
- Topics: docker, react, reactredux, redux
- Language: JavaScript
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple React-Redux Example
This project contains basic usage of redux pattern and react-redux library.
Also has basic docker and docker-compose example. It sets current working directory to the container volume. So you can run dev server from container and start development.
## Development Environment
run `npm install` for necessary packages
**Development with docker-compose**
run `docker-compose -f "docker-compose.yml" up -d --build` command in project directory that contains docker-compose.yml file
**Without docker-compose**
Run `docker build --pull --rm -f "Dockerfile" -t reactreduxshoppingcartexample "."` for building image. Than run
`docker run --name reactreduxapp -p 3000:3000 -v "$(pwd):/src" reactreduxshoppingcartexample` to start a container for development
**Development without docker**
run `npm start` for development server.