Isomorphic web app boilerplate
- Isomorphic (Universal)
- ES7
Tested with macOS Sierra
Fork the repo: github.com:2Toad/react-starter-kit
- Clone your fork:
git clone [email protected]:GITHUB_USERNAME/react-starter-kit.git
- Switch folders:
cd react-starter-kit
- Install dependencies:
yarn install
- Start the app:
yarn start
- Make changes
yarn test
Update your fork with the latest commits from the repo you forked off of:
git remote add upstream [email protected]:2toad/react-starter-kit.git
git fetch upstream master
git merge upstream/master
To always keep your changes (e.g., README.md)
git checkout --ours -- README.md
3a. It's a good idea to view all the changes you're merging in before committing them
git reset .
git diff
3b. If you don't like anything, change it.
3c. Make sure it builds and runs okay
yarn install --force
yarn lint && yarn test && yarn start
git add .
git commit -m "Merge master from 2toad"
git push
The image produced by this scrip uses the name
value stored in package.json
yarn run build -- --release --docker
docker run -p 49160:3000 -d <IMAGE_NAME>
- Print output:
docker logs <CONTAINER_ID>