Skip to content

Latest commit

 

History

History
executable file
·
30 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

executable file
·
30 lines (24 loc) · 1.25 KB

FusionAuth Node & React Example

This project contains an example project that illustrates using FusionAuth with Node and React.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/FusionAuth/fusionauth-example-template
  • cd fusionauth-example-template
  • ./server> npm install
  • ./react> npm install

FusionAuth Configuration

  • 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.

Running / Development

  • ./server> npm start
    • Debug mode ./server> node --inspect server.js
  • ./react> npm start