DEV Community

Jen C.
Jen C.

Posted on

2

🚀I built a RESTful API backend application with Express.js and TypeScript

  1. mean Stack Architecture: Follows the mean stack for a well-structured and maintainable project
  2. Schema and Data Validation: Utilizes Joi for defining schemas and validating data, including environment variables (process.env)
  3. MongoDB Integration: Employs Mongoose to model and interact with MongoDB Atlas
  4. User Authentication: Supports user sign-up, sign-in, and logout functionalities
  5. Email Service with OTP: Built with Nodemailer and Brevo, allowing the generation and sending of OTP codes via email
  6. CRUD Operations: Provides create, read, update, and delete (CRUD) operations for user data in the MongoDB Atlas database
  7. 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
  8. Request Validation Middleware: Includes middleware for validating incoming requests to ensure data integrity and security
  9. JWT Authentication: Generates JSON Web Tokens (JWT) using the jsonwebtoken library for secure user authentication and authorization

🎉 Check out the code on GitHub

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs