Sign inSign up

alexagency/react-yeoman

By alexagency

Updated almost 11 years ago

Yeoman with React generators

Image
1

2.5K

alexagency/react-yeoman repository overview

alexagency/react-docker

Dockerfile for Yeoman with ReactJS generators

Installation

Install Docker Machine.

Create virtual machine:

docker-machine create -d virtualbox dev

Get IP address:

docker-machine ip dev

Connect to virtual machine:

docker-machine ssh dev

Go to shared (between host and virtualbox) home directory:

cd /Users/<MAC USER>
cd /c/Users/<WINDOWS USER>

Run alexagency/react container from Docker Hub:

docker run -it --rm -p 3000:3000 -p 3001:3001 -v $(pwd)/react:/app alexagency/react

Initiate one of Yeoman generators:

React Starter Kit:

yo react-fullstack

ReactJS and Webpack:

yo react-webpack

Check generated project:

/Users/<MAC USER>/react
/c/Users/<WINDOWS USER>/react

Install Node.js components:

npm install

Run unit tests:

npm test

Compile and launch:

React Starter Kit and ReactJS and Webpack:

npm start

Browse to React webapp:

React Starter Kit:

http://<virtual machine ip>:3000/
http://<virtual machine ip>:3001/

Tag summary

Content type

Image

Digest

sha256:3accb52c8

Size

131.2 MB

Last updated

almost 11 years ago

docker pull alexagency/react-yeoman