Skip to content

Express.js-based service designed to handle user authentication, activity tracking, and email notifications

Notifications You must be signed in to change notification settings

Tech-Nest-Ventures/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Name: DeepFocus Backend API

Description:

The DeepFocus Backend API is an Express.js-based service designed to handle user authentication, activity tracking, and email notifications. It provides endpoints for user sign-up and login, daily and weekly activity data persistence, and backend email functionality. The service is secured with JWT-based authentication and supports cross-origin requests (CORS) for integration with frontend applications. The API also includes health check and database connectivity endpoints for monitoring and diagnostics.

Key Features:

Authentication: JWT-based user authentication and authorization via /api/v1/auth. Activity Tracking: Enables tracking and persistence of daily and weekly user activity at /api/v1/activity. Email Notifications: Provides email-related functionalities at /api/v1/emails. Health Check: A simple endpoint (/api/v1/health) to monitor the server’s health. Database Connectivity: Verifies connection to the MongoDB database via /api/v1/test-db.

Prerequisites

  • Node.js LTS >=v20.12.2
  • npm v10.5.0 or pnpm
  • MongoDB instance

Installation

  1. Install dependencies:

    npm install
  2. Create a .env file with your MongoDB URI:

    MONGO_URI=your_mongodb_uri
    JWT_SECRET=your_jwt_secret
    RESEND_API_KEY=your_resend_api
  3. Start the backend server:

    npm start

Goals

  • Set up CI/CD pipeline and automatic releases
  • Implement changelog using conventional commits
  • Add integration and automated tests
  • Implement user authentication and cloud-based data persistence using MongoDB and JWT
  • Migrate from electron-storage to SQLite for improved data handling

About

Express.js-based service designed to handle user authentication, activity tracking, and email notifications

Topics

Resources

Stars

Watchers

Forks