/auth_lab

Primary LanguageJavaScript

Auth examples lab

Labs

How to run

  • You need node.js 18.12.0 or higher

  • Package manager yarn You can install it by running the following command, or by another convenient method:

    $ npm i --global yarn
  • To start each application you need to do the following:

    • Install dependencies:
    $ yarn
    • Change working directory (for lab6 change branch before this step git checkout feature/lab6-implementation):
    $ cd {LAB_DIRECTORY}
    • Add an .env file that is identical to .env.example and contains your environment variables (auth0 credentials):
    $ cat .env.example > .env # and then edit
    • Run server for labs 1,4-6:
    $ node index.js
    • Open in browser:
    http://localhost:3000
    
    • For lab 2,3, run the *-example.js script with the node.JS and look at the output. E.g.:
    $ node create-user-example.js
    ...
    $ node change-password-example.js