README.md
December 25, 2017 ยท View on GitHub
Docker Development Tools
You can use tools in this folder to use develop in a docker container. Developing in a docker container will ensure environmental consistency and prevent dependencies from getting installed directly onto your file system. Here is more documentation about using docker when developing javascript applications.
Run the Dev Server
To run the website in a local environment:
- make sure Docker is installed
- clone this repository
git clone git@github.com:mac-s-g/github-help-wanted.git
- build the docker container
cd github-help-wanted/./docker/build-container.sh
- run the development server
./docker/dev-server.sh
- navigate to http://localhost:3100/ in your web browser
After completing the steps above, you'll have webpack-dev-server running in a Docker container with hot-reloading enabled. Try updating some source code. Changes will be reflected in your browser after saving.
notes: if you change the dependencies in package.json, make sure you rebulid the container with ./docker/build-container.sh.
Run the Production Build
The build runs in a container and outputs files into github-help-wanted/dist/. Here's how to instantiate the build process:
cd github-help-wanted/./docker/build.sh- Verify the result by exploring the output in your web browser:
cd dist/- open
index.htmlin a web browser
- If your changes look good, send me a pull request!