pegasus-io / the-cors-tester

A quick HTTP webserver with its webapp that requests cross origin resources
0 stars 0 forks source link

node express demo app - whatabyte food portal

this is a website created with node & express, using pug (updated jade) for templating. the goal is to connect to auth0.com for user authentication.

tutorial link

How to start

export DESIRED_VERSION=HEAD
git clone https://github.com/pegasus-io/the-cors-tester
cd ./the-cors-tester
git checkout ${DESIRED_VERSION}

# the domain
export AUTH0_DOMAIN=auth0.pegasusio.io
# the clientID
export AUTH0_CLIENT_ID=pegasustest
# the clientSecret
export AUTH0_CLIENT_SECRET=ver7S3cr3t
# callbackURL
export AUTH0_CALLBACK_URL=https://someservice.pegasusio.io:8459/ether
npm i && npm run dev
# .env
export AUTH0_CLIENT_ID=N9Sa4YRY8hLnxLcTFqQM3Bfo32cQMMOY
export AUTH0_DOMAIN=pegasusio.eu.auth0.com
export AUTH0_CLIENT_SECRET=YOUR_CLIENT_SECRET
# the domain name depends on where you deployed and made available your app
export AUTH0_CALLBACK_URL=http://2886795290-8000-cykoria04.environments.katacoda.com/callback

echo ''
echo " -- finally, and **very important** : "
echo " --   you must configure the Auth0 _Application_ you created, to allow one callback url, of value "
echo " --   the exact value of [${AUHT0_CALLBACK}]"
echo ''