Giter VIP home page Giter VIP logo

react-starter-kit's Introduction

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>

react-starter-kit's People

Contributors

4lbertoc avatar abramz avatar addnab avatar ademuk avatar agresvig avatar agriffis avatar alastairtaft avatar alexwhb avatar andantonyan avatar athomann avatar bawjensen avatar bsitruk avatar chentaixu avatar cmrnh avatar dabrowski-adam avatar frenzzy avatar goatslacker avatar greenkeeperio-bot avatar jasonpierce avatar jazmon avatar koistya avatar langpavel avatar nodkz avatar richb-hanover avatar rsanchezpp avatar rusjoan avatar sdiaz avatar tobiasmuehl avatar zhiyelee avatar zwhitchcox avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.