This project uses React+Redux, Node.js, Express and Webpack. Dockerized.
It is also configured with webpack-dev-server, eslint(Airbnb's rules) and babel. Testing environment configured with Jest + Enzyme.
It has simple Node.js/Express backend with 1 endpoint and mocked data. Client side app shows list of smartphones and opens details for each one.
In the development mode there are 2 servers running. The front end code will be served by the webpack dev server which helps with hot and live reloading. The server side Express code will be served by a node server using nodemon which helps in automatically restarting the server whenever server side code changes.
docker build -t node-react-app .
docker run -it -v ${PWD}:/usr/src/app -v /usr/src/app/node_modules -p 3000:3000 --rm node-react-app
It will be available on http://localhost:3000/
npm install
npm run dev
yarn install
yarn dev
npm run test
npm run test:watch
yarn test
yarn test:watch