Coder Social home page Coder Social logo

monster-rolodex-practice's Introduction

monster-rolodex-practice

check it on here to view

Deploy to GitHub Pages

The following instructions allow you to deploy any of your front-end only React apps using GitHub Pages (GitHub Pages is unable to hostfull-stack apps).

Please follow these steps to deploy your app to GitHub Pages:

  1. In Terminal, create a local git repo: $ git init

  2. In your GitHub account, create a new repository named < the app name >.

  3. Back in Terminal, add the origin remote: $ git remote add origin https://github.com/<your github username>/<the app name>.git

    Be sure to replace < your github username > with your personal GitHub username!

  4. To save time, there's no need to make a commit, the tool we are going to use will automatically make a commit and create a gh-pages branch.

  5. In VS Code, open your package.json and add an additional top-level key/value pair: "homepage": "https://<your github username>.github.io/<the app name>",.

  6. Also in package.json, add two additional key/value pairs, "predeploy" and "deploy", within the existing "scripts" key:

    	"scripts": {
      		// add these two new keys, don't forget to add a comma above
      		"predeploy": "npm run build",
      		"deploy": "gh-pages -d build"
    	}
    
  7. In Terminal, let's install the gh-pages npm package we just referenced in the "deploy" entry: $ npm i gh-pages

  8. Now run the command $ npm run deploy to deploy! (enter your GitHub credentials if asked).

The "predeploy" script automatically builds the app.

The `https:// < your github username >.github.io/< the app name > link might take a minute to become active.

monster-rolodex-practice's People

Contributors

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