This project contains an example project that illustrates using FusionAuth with Node and React.
You will need the following things properly installed on your computer.
git clone https://github.com/FusionAuth/fusionauth-example-template
cd fusionauth-example-template
./server> npm install
./react> npm install
- Start up FusionAuth App
- Log into FusionAuth and create a new API key using the value from the
server/config/config.json
configuration file - In the FusionAuth UI, you need to configure JWT.
- Go to Settings > Applications, locate the application named 'Example Application' and click the Edit button in the Action column.
- Go to the JWT tab, and enable JWT.
- Choose 'RSA using SHA-256' (any of the RSA options will work) and click the blue button with the arrow icon to generate your RSA keys.
- Click the save button at the top of the page.
./server> npm start
- Debug mode
./server> node --inspect server.js
- Debug mode
./react> npm start
- This should open a browser to https://localhost:3000.