Skip to content

This repository contains the backend code for a full-stack blog posting and subscription platform. The backend is built using Node.js, Express, and TypeScript, with Prisma for database interactions and Supabase for authentication and real-time features.

License

Notifications You must be signed in to change notification settings

abel-cosmic/blog-application-backend

Repository files navigation

Blog Application Backend

Project Overview

Project Name: Blog Application Backend

Description:
This repository contains the backend code for a full-stack blog posting and subscription platform. The backend is built using Node.js, Express, and TypeScript, with Prisma for database interactions and Supabase for authentication and real-time features.

Technologies

  • Node.js
  • Express
  • TypeScript
  • Prisma
  • Supabase
  • dotenv

Features

  • Blog Management:

    • Add, update, view, and delete blog posts.
    • Search for blogs.
  • User Management:

    • Add new admins and manage user roles.
  • Subscription Management:

    • View and manage subscribers.
  • Email Notifications:

    • Send email notifications for subscriptions and new blog posts.

Folder Structure

  • src/: Source files
    • controllers/: Handles incoming requests and responses
    • models/: Defines Prisma models for database interactions
    • api/: Defines Express routes for handling different endpoints
    • services/: Contains business logic and service functions
    • config/: Configuration files for Prisma and Supabase
    • utils/: Utility functions for various tasks
    • types/: TypeScript type definitions

Getting Started

Prerequisites

  • Node.js
  • TypeScript

Installation

  1. Clone the repository:
    git clone <repository_url>
  2. Navigate to the project directory:
    cd blog-application-backend
  3. Install dependencies:
    npm install

Running the Application

  • To build the project:

    npm run build
  • To start the application:

    npm start
  • To run the application in development mode:

    npm run dev

Scripts

  • build: Compile the TypeScript code.
  • start: Run the application from the compiled JavaScript code.
  • dev: Run the application in development mode using Nodemon.

License

This project is licensed under the ISC License.

About

This repository contains the backend code for a full-stack blog posting and subscription platform. The backend is built using Node.js, Express, and TypeScript, with Prisma for database interactions and Supabase for authentication and real-time features.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published