Skip to content
This repository has been archived by the owner on Nov 19, 2017. It is now read-only.

gnits-map-projects/react-template-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a template application that includes React, Bootstrap and FontAwesome. Start a new application by cloning this repository.

Setup

Install Command Line Developer Tools

Open Terminal (you'll probably also want to add this to the dock), and type:

xcode-select --install

Click "Install" from the software update popup window.

Install Node

Download Node and install.

Download Atom

Download Atom and install. Atom is a "hackable text editor" for editing code.

Create a new React application

Clone this repository

Clone this repository, replacing my-app with the name of your application.

git clone git@github.com:gnits-map-projects/react-template-app.git my-app
cd my-app/

Remove the origin

In git, the origin is an alias for the remote repository from which we cloned. Remove the origin, since we don't want to update the react-template-app repository!

git remote rm origin

To check that the origin was removed:

git remote -v

Rename the application

Update package.json with the name of your application. Name your application whatever you used instead of my-app.

npm init

Update <title> in ./public/index.html to be something like "My App".

Replace the README.

Create a new repository on Github

Create a new repository on Github. Name your repository whatever you used instead of my-app.

Push your repository to Github

Push your repository to Github, replacing with your username and the name of your application.

git remote add origin git@github.com:theojapa/my-app.git
git push -u origin master

Install dependencies

Install dependencies (e.g., React) since their sources are not saved with your application in source control.

npm install

This installs the dependencies specified in ./package.json. If you peek in ./node_modules, you'll see a whole lot of stuff. That's because your dependencies have dependencies, and so on.

Run your application

npm start

The application should now be running in your browser at http://localhost:8080/. It'll automatically be refreshed when you make code changes. Change something in App.js to see this in action.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published