Skip to content

sinqinc/fusionauth-example-template

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.6%
  • CSS 10.1%
  • HTML 1.3%