Learning how to structure your folder for other people to understand your code and further work on it easily is a great deal and shows how your coding practices are.

Express is a minimal and flexible Node.Js web application framework that provides a robust set of features for web and mobile applications.

Photo from npmjs.org

To get the most out of your Express applications and make the code readable and understandable for the people out there, it is really necessary to structure your project in a way that anyone can understand which file does what.

Google Oauth is an authentication API by Google which makes logging in easy for users as well as for developers for storing the user data.

Ever wondered how different sites use Google authentication in order to make your signup/login process a whole lot easier. Well, Google Oauth is something that they use in order to achieve this.

We are going to go step by step about how to apply this in your Node.Js applications using Passport.Js and Express.Js

First of all, making an app.js file in your root directly and starting a server using Express.Js and mongoose to connect to your MongoDB database. In order to do this, you’ll need to install all the npm dependencies. …

Jugal Bhatt

Software Developer || Student at VIT university.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store