Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 974 Bytes

File metadata and controls

37 lines (23 loc) · 974 Bytes

react-router-guards | Intermediate Demo

The intermediate demo uses the PokéAPI to showcase how to use route guards for fetching data from an API.

Installation

To install the project locally on your machine, do the following:

  1. In the root directory, install the correct version of node using nvm:

    $ nvm install
  2. In the root directory, install the dependencies for all directories:

    $ npm i && npm run bootstrap

Getting started

To work actively on both the demo and react-router-guards package, you'll need both watch processes actively running. This can be done as follows:

  1. In the root directory, ensure you're using the correct node version using nvm

    $ nvm use
  2. In the root directory, run the start command:

    $ npm start

You should now be able to visit localhost in your browser and begin development!