Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

2Toad/react-starter-kit

 
 

Repository files navigation

Archived Repository 🚨

This project is no longer maintained and has been archived. No further issues, PRs, or updates will be made.


React Starter Kit

Isomorphic web app boilerplate

Architecture

  • Isomorphic (Universal)
  • ES7

Stack

Mac Dev Box

Tested with macOS Sierra

Prerequisites

  1. Docker for Mac 1.12+
  2. Node.js 6.9+
  3. Yarn 0.18+

Source Code

Fork the repo: github.com:2Toad/react-starter-kit

  1. Clone your fork: git clone [email protected]:GITHUB_USERNAME/react-starter-kit.git
  2. Switch folders: cd react-starter-kit

Development

  1. Install dependencies: yarn install
  2. Start the app: yarn start
  3. Make changes

Automated Testing

yarn test

Update Repo

1. Merge Upstream

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

2. Merge Conflicts

To always keep your changes (e.g., README.md)

git checkout --ours -- README.md

3. Before Committing

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

4. Commit

git add .
git commit -m "Merge master from 2toad"
git push

Deployment

Build Docker Image

The image produced by this scrip uses the name value stored in package.json

yarn run build -- --release --docker

Run Docker image

docker run -p 49160:3000 -d <IMAGE_NAME>

Troubleshooting

  • Print output: docker logs <CONTAINER_ID>

About

React Starter Kit — isomorphic web app boilerplate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.1%
  • CSS 11.4%
  • Dockerfile 0.5%