Skip to content

Email Scheduler App: A full-stack application built with Next.js, TypeScript, and MongoDB for scheduling and managing emails. Features include scheduling, editing, and searching based on title. Explore the modern tech stack and streamline your email management process.

vermaAtul1520/email-scheduler

Repository files navigation

Email Scheduler App

Screenshot 2024-02-01 at 2 14 48 AM

A full-stack email scheduler application built with Next.js, TypeScript, and MongoDB.

Table of Contents

Features

  • Schedule new emails with details such as title, description, time, etc.
  • View a list of scheduled emails.
  • Edit and update existing scheduled emails.
  • Delete scheduled emails.
  • Search functionality based on email title.

Getting Started

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/vermaAtul1520/email-scheduler.git
cd email-scheduler
  1. Install dependencies:
npm install
  1. Set up environment variables:

    Create a .env.local file in the root of your project and add the following variables:

    MONGO_URL=your_mongodb_connection_string
    NEXT_PUBLIC_BASE_URI=backend_base_url

    Replace your_mongodb_connection_string with your MongoDB connection string and backend_base_url with your actual base url of backend.

Usage

  1. Start the Next.js development server:
npm run dev
  1. Open your browser and go to http://localhost:3000

  2. Explore the email scheduler application.

API Endpoints

The backend of the application exposes the following API endpoints:

  • GET /api/schedules: Returns a list of all schedules.
  • GET /api/schedules?title=sampletitle: Returns a filtered list based on the title.
  • GET /api/schedules/:id: Returns specific schedule details.
  • PATCH /api/schedules/:id: Updates a specific schedule.
  • DELETE /api/schedules/:id: Deletes a specific schedule.
  • POST /api/schedules: Creates a new schedule.

Project Structure

/
|-- pages/            # Next.js pages
|-- components/       # React components
|-- lib/              # Utility functions and constants
|-- controllers/      # API route controllers
|-- middlewares/      # Middleware functions
|-- public/           # Public assets
|-- styles/           # CSS styles
|-- .env.local        # Environment variables
|-- next.config.js    # Next.js configuration
|-- package.json      # Node.js dependencies
|-- README.md         # Project documentation

Tech Stack

  • Next.js
  • TypeScript
  • MongoDB
  • CSS (Vanilla)

About

Email Scheduler App: A full-stack application built with Next.js, TypeScript, and MongoDB for scheduling and managing emails. Features include scheduling, editing, and searching based on title. Explore the modern tech stack and streamline your email management process.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published