Skip to content

Example application showcasing Fluree's password authentication API

Notifications You must be signed in to change notification settings

dpetran/auth-pass-example

 
 

Repository files navigation

This project was built using Fluree's blockchain-backed graph database

Introduction

This repo offers a look at Fluree identity management via the Password API and user roles.

Included is a simple comics store pull-list React app that demonstrates how Fluree's built-in user roles can be leveraged to provide role-specific functionality. You will need to be running a local instance of a Fluree database to use the app. This demo was built and tested using Fluree v0.15.0, although it should also run on the latest version, available here.

Check out the accompanying video to see a more in-depth example of how the Password API works, along with a quick walkthrough of the example app.

Starting a local Fluree instance

Before you can use the app, you need a local instance of Fluree running. In the folder you extracted Fluree into, use the terminal command ./fluree_start.sh (you can use the built-in terminal emulator with Linux/Mac; for Windows you will need to download a Bash emulator (e.g. Git for Windows))

For more detailed instructions, you can check out the Fluree docs on the subject.

Starting the React App

Use the command npm install in the project directory to locally install the project dependencies.

As long as you have a local instance of Fluree running (see above), run npm start, and the app should automatically create the database in the Fluree ledger, set up the schema, and populate seed data upon mounting. If you are running your Fluree instance on a port other than the default (8080), set the port number as the enviroment variable REACT_APP_FLUREE_PORT.

About

Example application showcasing Fluree's password authentication API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.7%
  • HTML 6.2%
  • CSS 3.1%