Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.38 KB

React Starter Template

This is the starter template for all City of Asheville React web projects. It contains the basic file structure, shared templates and icons (e.g., navbar, authentication, language components). It is intended to be paired with a back-end application based on the GraphQL Starter Template.

To create a new React web app that derives from this one, create the new repo (e.g., NEW-REPO) and then:

git clone  https://github.com/cityofasheville/react-starter-template NEW-REPO
cd NEW-REPO  
git remote set-url origin https://github.com/cityofasheville/NEW-REPO
git remote add upstream https://github.com/cityofasheville/react-starter-template
git push origin master

If you are outside the City of Asheville organization, then you can just fork.

To build the API, run:

yarn
yarn start

City of Asheville applications should not fork but rather clone this project so that updates to the template can be pulled. The application-specific react code should all be added in the app subdirectory under src. Do NOT edit files inside the template directory inside a child repository!! Any changes to the template must be made in the react-starter-template project.

To merge changes in this project into another project

  1. git fetch upstream
  2. git merge upstream/master --strategy-option theirs