├── components/ # Shared or generic UI components │ ├── Button/ # Button component │ ├── Layout/ # Website layout component │ ├── Link/ # Link component to be used instead of <a> │ └── ... # etc. ├── docs/ # Documentation to the project ├── node_modules/ # 3rd-party libraries and utilities ├── src/ # Application source code │ ├── about/ # About page │ ├── error/ # Error page │ ├── home/ # Home page │ ├── history.js # Handles client-side navigation │ ├── main.js # <== Application entry point <=== │ ├── router.js # Handles routing and data fetching │ ├── routes.json # This list of application routes │ └── store.js # Application state manager (Redux) ├── public/ # Static files such as favicon.ico etc. │ ├── dist/ # The folder for compiled output │ ├── favicon.ico # Application icon to be displayed in bookmarks │ ├── robots.txt # Instructions for search engine crawlers │ └── ... # etc. ├── test/ # Unit and integration tests ├── tools/ # Utility and helper classes └── package.json # The list of project dependencies and NPM scripts
Step 2. Clone this repository
Step 3. Compile and launch your app by running:
$ yarn start # Compiles the app and opens it in a browser with "live reload"
You can also test your app in release (production) mode by running
yarn start -- --release or
with HMR and React Hot Loader disabled by running
yarn start -- --no-hmr. The app should become
available at http://localhost:3000/.
How to Test
How to Deploy
publish script in the
tools/publish.js file with your full Firebase
project name as found in your Firebase console. Note that
this may have an additional identifier suffix than the shorter name you've provided. Then run:
$ yarn publish # Builds and deployes the app to Firebase
The first time you publish, you will be prompted to authenticate with Google and generate an authentication token in order for the publish script to continue.
If you need to build the project without publishing it, simply run:
$ yarn build # Compiles the app into the /public/dist folder