
Explain how an api acts as a gateway between front-end apps and back-end infrastructure, defining endpoints and handling requests with common http methods and status codes.
Install mac prerequisites, including node 14 via node version manager (nvm), then install MongoDB community server and follow the MongoDB docs for your setup.
Install the Windows prerequisites: Node.js version 14, verify with node -v, install MongoDB community server with MongoDB Compass, then launch mongod and view databases.
Explore the model-route-controller pattern for structuring Node APIs with Mongoose, defining schemas, routes, controllers, and middleware. Implement a rate limiter to protect the API and handle requests.
Implement the user controller to handle business logic for creating a new user, export it, wire the user model, and test with Postman for upcoming routes.
Implement email confirmation with mail trap and node mailer, sending a verification token to user emails and enabling verification via a confirm token route.
Learn key API and JWT concepts to get you up to speed with the benefits of setting up modern JSON Web Token authentication through a microservice. Covering:
What is API and how does it work?
What is JWT and how does it work?
Setting Up MongoDB Atlas & Community Server
Setting Up Express API Server
Model-Route-Controller Design Pattern Implementation
Access Token Verification Middleware
Refresh Token Functionality
Login & Registration Functionality
Email Confirmation & Password Reset Functionality
Email Change Functionality
Here is what you will get with this course:
1. Complete beginner to API & JWT concepts – You will learn what API and JWT is, how they work and how you can practically implement them into a fully functional microservice that can be integrated with any front-end and back-end.
2. Useful resources – You will get useful PDF resources and code templates as you move towards progressing through the lectures. The PDF files will be in form of quick explanation guides and the code templates will include the previous functional code and code snippets.
3. Real-world challenges – At the end of some section you will be given at least one mini challenge to extend the functionality of the API before moving onto the next section, just to push you a little further when it comes to self-teaching and learning new things.
4. Advanced concepts & security - You will build an API that is completely secure and takes into consideration security holes and insecure practices. This will help all beginners, intermediate and advanced programmers to build a secure back-end and front-end integration.
5. Ask me anything – I understand that you may have questions about any aspect of the course, therefore I am more than happy to answer any questions in Q&A section within a very timely manner!