Skip to content

KshitijShukla30/OTPCHECKING

Repository files navigation

This is a Next.js application that provides OTP (One-Time Password) generation and verification services.

Features

  • OTP Generation
  • OTP Verification
  • Email-based OTP delivery

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js (v14 or later)
  • npm (v6 or later)

Installation

  1. Clone the repository:

    git clone https://github.com/KshitijShukla30/OTPCHECKING.git
    cd otp-service
  2. Install the dependencies:

    npm install

Running the Application

To run the application in development mode:

npm run dev

The application will be available at http://localhost:3000.

Building for Production

To create a production build:

npm run build

To start the production server:

npm start

Project Structure

  • src/components/: React components
  • src/pages/: Next.js pages
  • src/services/: API services
  • src/context/: React context for state management
  • src/app/: Global styles

Configuration

  • Tailwind CSS configuration is in tailwind.config.js
  • PostCSS configuration is in postcss.config.mjs

API Routes

The application uses the following API routes:

  • /api/otp/generate: POST request to generate an OTP

    • Request body: { email, type, organization, subject }
    • Response: { message }
  • /api/otp/verify: POST request to verify an OTP

    • Request body: { email, otp }
    • Response: { message }

These routes are handled by the OTP service hosted at https://otp-service-beta.vercel.app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published