dev-resources.site
for different kinds of informations.
🚀I built a RESTful API backend application with Express.js and TypeScript
Published at
7/29/2024
Categories
express
backend
api
typescript
Author
Jen C.
- mean Stack Architecture: Follows the mean stack for a well-structured and maintainable project
- Schema and Data Validation: Utilizes Joi for defining schemas and validating data, including environment variables (process.env)
- MongoDB Integration: Employs Mongoose to model and interact with MongoDB Atlas
- User Authentication: Supports user sign-up, sign-in, and logout functionalities
- Email Service with OTP: Built with Nodemailer and Brevo, allowing the generation and sending of OTP codes via email
- CRUD Operations: Provides create, read, update, and delete (CRUD) operations for user data in the MongoDB Atlas database
- Role-Based Access Control: Implements role-based access control using 7. Bearer Authentication for sensitive API endpoints, such as changing user roles and deleting users
- Request Validation Middleware: Includes middleware for validating incoming requests to ensure data integrity and security
- JWT Authentication: Generates JSON Web Tokens (JWT) using the jsonwebtoken library for secure user authentication and authorization
🎉 Check out the code on GitHub
Articles
12 articles in total
Build and Deploy a Monorepo WebSocket web application with Turbo, Express, and Vite on Render Using Docker
read article
Efficiently Extract Nested URL Parameters with Recursive Logic in JavaScript
read article
React - Create a custom hook to handle online and offline events by using AbortController and addEventListener
read article
CSS - display: flex vs inline-flex
read article
How to Perform Actions After an Image Loads in React: Using the onLoad Event or the complete Property
read article
Using Zod's z.union: An Important Pitfall to Avoid
read article
How to Fix Common ESLint Errors: Troubleshooting Unknown or Strange Issues
read article
Set Up an Express.js Server with Socket.IO for Real-Time Client Communication
read article
🚀I built a RESTful API backend application with Express.js and TypeScript
currently reading
Simulate APIs using Postman (Create a mock server)
read article
JavaScript - Map and filter an array at the same time
read article
LeetCode - Solution for 2625. Flatten Deeply Nested Array
read article
Featured ones: