Giter Site home page Giter Site logo

nodeexpresspodcast's Introduction

Passport JWT Authentication

Refer to this postman collection

Node.js authentication tutorial using Passport.js

Prerequisites

Make sure you have these installed on your machine

  • Node.js
  • MongoDB
  • npm This comes with Node.js, but make sure you check if you have it anyway

Installing packages & pre-requisites

Obtain keys from azure cognitive services from following url https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/?apiSlug=speech-services&country=India&allowContact=true&fromLogin=True

End point: https://westus.api.cognitive.microsoft.com/sts/v1.0

Create a .env file on the root directory to declare the environment variables for the following: touch .env

DB_CLIENT=<your MongoDB client> (observe the below connection string with user and password)
DB_CLIENT=mongodb://admin:admin123@localhost/voxsnap?authSource=admin
JSON_WEBTOKEN_SECRET=<your custom JWT secret key>
NODE_ENV=<development | production>
AZURE_USER_AGENT_RESOURCE_NAME=<azure resource name>
AZURE_KEY1=<azure api key1>
AZURE_KEY2= <azure api key2>

Create MongoDb Database named 'voxsnap' and set up the connection string in app.js with appropriate username and password

database name = voxsnap

Install packages

npm i

Running the app

To run the app (dev. mode)

npm start

Built With

Authors

Acknowledgments

nodeexpresspodcast's People

Contributors

vikasmagar512 avatar antonioerdeljac avatar

Watchers

James Cloos avatar  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.