Code Monkey home page Code Monkey logo

iotp-dashboard's Introduction

You can check out a live demo of the app on https://iotp-dashboard.vercel.app/ . It is hosted on vercel.

For our project, we are only able to create an account through the Auth0 dashboard for security reasons. If you want, you can let users sign up.

Steps to to run the code,

  1. make sure you have npm installed or equivalent. Visit https://nodejs.org/en/ for more information if you do not have it installed.

  2. clone this repositry or download the zip file

  3. type in npm install at the root directory

  4. Add a env file to the root directory of the file

  5. go to auth0 website https://auth0.com/ and create a new application

  6. add in an env file at the root directory of the project and add this in:
    AUTH0_CLIENT_ID = ( auth0 client id here)
    AUTH0_CLIENT_SECRET = (auth0 secret here)
    AUTH0_ISSUER = (auth0 issuer address here)
    NEXTAUTH_URL = (your website host address)
    NEXT_PUBLIC_APP_ID = (your mongo app id)
    AUTH0_AUDIENCE= (your auth0 audience)
    NEXTAUTH_SECRET = (your nextauth secret here for middleware)

For more information I have found this website that explain the process of using Nextjs, Next-Auth and Auth0 pretty well https://javascript.plainenglish.io/how-to-authenticate-users-with-auth0-in-next-auth-9c1160ce48a8 .

Happy coding!

iotp-dashboard's People

Contributors

tamothee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.