An open API service indexing awesome lists of open source software.

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

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.