Asset 20
Step by step

Server side apps with Express & MongoDB Roadmap

Express is a lightweight Node.js framework designed to start backend development in no time. It helps create serverside rendered applications as well as APIs for frontend clients.

Express framework is highly scalable and follows MVC architecture pattern for designing backend applications. Implement authentication as well as authorisation for securing applications. Connect Express to any SQL or NoSQL database to work with data.

Express Fundamentals

Learn how to create a basic Express server, work with different HTTP methods, learn about different types of middlewares and learn to capture data from clients

Exercises / Projects

Mongoose.js

Mongoose is a wrapper around MongoDB database which helps in defining structure of the data being saved into the database, adding proper validations for the data.

Exercises / Projects

CRUD operations in Express

In MERN applications, Express CRUD uses MongoDB database to store data and uses these data to send to clients as a webpage.

  • Views layer in Express
  • Routing conventions in ExpressPRO
  • Routing in ExpressPRO
  • Create Operation in CRUDPRO
  • Read/query Operation in CRUDPRO
  • Update Operation in CRUDPRO
  • Delete Operation in CRUDPRO
Exercises / Projects

Express CRUD with Associations

CRUD applications usually interact with multiple resources. Associations help in managing and tracking multiple resources in the database as well as inside the applications.There are different types of associations.

Exercises / Projects

Authentication in Express

Authentication helps secure Express applications from unwanted sessions. It also gives acsess to user demographics which helps in understanding the user base as well as enhance the reach of the application.

  • What is authentication ?PRO
  • Use cases of authentication in ExpressPRO
  • User registration processPRO
  • Pre save hook in mongoosePRO
  • Hash password using bcryptPRO
  • User login processPRO
  • Creating session and cookies for loggedIn userPRO
  • Logout UserPRO
  • Flash messages in expressPRO
Exercises / Projects

Authorisation in Express

Authorisation provides authority for logged in user to access specific content on the application. Authorisation determines roles and permissions for different kinds of user on the application.

  • What is Authorisation ?PRO
  • Understanding Authorisation FlowPRO
  • Adding middleware to check logged in userPRO
  • Authorising routesPRO
  • Passing logged user information into requestPRO
  • Passing logged user information into templates via localsPRO
  • Associating logged in user with resourcesPRO
Exercises / Projects
  • Explain the role of authorisation
  • Create authorisation middleware to check logged in userPRO
  • Create middleware to protect certain routes for logged in user onlyPRO
  • create middleware to pass logged in user data to routesPRO
  • create middleware to pass logged in user data to templatesPRO

OAuth using passport in Express.js

OAuth allows application to integrate login via credentials from 3rd party trusted applications like google, github, twitter etc.. Passport is a npm package which facilitates integrating 3rd party login in Express app

  • Introduction to OAuth
  • Introduction to Passport
  • Understanding Oauth FlowPRO
  • Obtaining credentials for OAuth appPRO
  • Adding request and callback routesPRO
  • Implementing OAuth StrategyPRO
  • Handling public profile data in local applicationPRO
  • SerialiseUser and deserialiseUser functionPRO
Exercises / Projects

AltCampus helps you learn faster by inculcating these systems as part of the learning model. 🙌

START LEARNING