/MailApi

MailApi used to send Emails to users.

Primary LanguageJavaScriptMIT LicenseMIT

MailApi

Express.js Node.js JavaScript

This repository contains a RESTful API built with Express.js designed to send Email to users using nodemailer.

Features:

  • 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.

Setup:

  1. Clone the Repository:

    git clone https://github.com/HaroonSaifi17/MailApi.git
    
  2. Install Dependencies:

    npm install
    
  3. 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
    
  4. Run the Server:

    npm start
    

Contribution:

Contributions are welcome! Feel free to submit pull requests or open issues for any suggestions, bug fixes, or improvements.

License:

This project is licensed under the MIT License - see the LICENSE file for details.