Yeoman with React generators
2.5K
Dockerfile for Yeoman with ReactJS generators
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:
yo react-fullstack
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/
Content type
Image
Digest
sha256:3accb52c8…
Size
131.2 MB
Last updated
almost 11 years ago
docker pull alexagency/react-yeoman