The intermediate demo uses the PokéAPI to showcase how to use route guards for fetching data from an API.
To install the project locally on your machine, do the following:
-
In the root directory, install the correct version of node using
nvm
:$ nvm install
-
In the root directory, install the dependencies for all directories:
$ npm i && npm run bootstrap
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:
-
In the root directory, ensure you're using the correct node version using
nvm
$ nvm use
-
In the root directory, run the start command:
$ npm start
You should now be able to visit localhost in your browser and begin development!