This repository contains the accompanying code to our getting started guide.
- Follow the getting started guide on creating the
.envfiles 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
- Open two separate terminal sessions and install dependencies for the server and frontend projects. Then run
npm startin both.
$ cd server
$ npm install
$ npm start$ cd frontend
$ npm install
$ BROWSER=NONE npm start- Navigate to
http://example.localhost:3000in your browser