Create a Node.js app
2 min

For this guide, you will be creating a simple Node.js app using the npx express-generator command.

Open a terminal and run the following command to create a new Node.js app using the Express.js framework (Provide a suitable name for the app):

npx express-generator passport-asgardeo-sample --view=ejs

Next, change the directory to the newly created app and install the dependencies.

cd passport-asgardeo-sample
npm install

Then run the following command to start the application.

npm start

Confirm that the application is up and running by verifying the output in the terminal. Then, navigate to http://localhost:3000 and you should see the sample app working in the browser.

This allows you to see real-time updates and debug the app as you make changes.

Navigate to localhost

At this point, you have a simple Node.js app up and running. In the next step, let’s try to integrate passport-asgardeo with the app.