Coder Social home page Coder Social logo

mintbean-challenge-react-starter's Introduction

The fastest way to hit the ground running with React for your next Mintbean challenge!

Comes with gh-pages to deploy your React app without the fuss.

Get started

Install create-react-app

 yarn global add create-react-app

or

npm install -g create-react-app

Create new React app with template

Replace <my-app> with your new app name

create-react-app <my-app> --template cra-template-mintbean-challenge-react-starter

Create a new Github repo

cd into your new project and push it to a new Github repo using hub create (don't have hub? install it )

git add .
git commit -m "init"
hub create
git push origin master

A new repo has been created in your Github with the name of your project.

Run yarn start to start your dev server. Get coding!

Deploy to Github Pages

Deploy your app at any time after setting up the following config.

1. Update package.json

IMPORTANT In package.json, between the "name" and "version" keys, add a new key "homepage". Replace values with your <github-username> and <repo-name>

{ 
  ...
  "homepage": "https://<github-username>.github.io/<repo-name>/",
  ...
}

2. Deploy

Push any updates you have to master, then run:

yarn deploy

or if you use npm:

npm run deploy

That's it! You're app is now publically demo-able at https://<github-username>.github.io/<repo-name>/

Note

By default, Github pages builds off master branch, so push any changes you want deployed there. You can run yarn deploy as often as you like. Be sure to deploy one last time at the end of the proejct period!

Where's my page???

If you can't find your Github Page, go to your repo > "Settings" > scroll to Github Pages section.


This project was bootstrapped with Create React App.

mintbean-challenge-react-starter's People

Contributors

clairefro 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.