This repository contains a RESTful API built with Express.js designed to send Email to users using nodemailer.
- Express.js: Utilizes Express.js for handling HTTP requests and routing.
- MongoDB: Integrates MongoDB as the database to store and manage blog posts.
- RESTful API: Follows RESTful principles for creating, updating, deleting, and retrieving blog posts.
- Modular Structure: Organized codebase with modular components for scalability and maintainability.
-
Clone the Repository:
git clone https://github.com/HaroonSaifi17/MailApi.git
-
Install Dependencies:
npm install
-
Set Environment Variables: Create a
.env
file in the root directory and define the following variables:PORT=3000 MONGODB_URI=your_mongodb_uri USERNAME=example PASSWORD=something
-
Run the Server:
npm start
Contributions are welcome! Feel free to submit pull requests or open issues for any suggestions, bug fixes, or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.