Skip to content

unologin/express-react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unolog·in example project

This repository contains the accompanying code to our getting started guide.

Running the example

  1. Follow the getting started guide on creating the .env files for both server and frontend.

server/.env

# fill in your API-key from the dashboard
UNOLOGIN_API_KEY=YOUR-API-KEY

# change if you like
UNOLOGIN_COOKIES_DOMAIN=example.localhost

# allows you to test locally
UNOLOGIN_DEBUG_DISABLE_SECURE=true
NODE_ENV=development

frontend/.env

# fill in your app ID from the dashboard
REACT_APP_UNOLOGIN_APPID=YOUR-APP-ID
  1. Open two separate terminal sessions and install dependencies for the server and frontend projects. Then run npm start in both.
$ cd server
$ npm install
$ npm start
$ cd frontend
$ npm install
$ BROWSER=NONE npm start
  1. Navigate to http://example.localhost:3000 in your browser

About

Minimal example implementation using unologin with React and Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors