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.
- Node.js
- Express
- TypeScript
- Prisma
- Supabase
- dotenv
-
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.
src/
: Source filescontrollers/
: Handles incoming requests and responsesmodels/
: Defines Prisma models for database interactionsapi/
: Defines Express routes for handling different endpointsservices/
: Contains business logic and service functionsconfig/
: Configuration files for Prisma and Supabaseutils/
: Utility functions for various taskstypes/
: TypeScript type definitions
- Node.js
- TypeScript
- Clone the repository:
git clone <repository_url>
- Navigate to the project directory:
cd blog-application-backend
- Install dependencies:
npm install
-
To build the project:
npm run build
-
To start the application:
npm start
-
To run the application in development mode:
npm run dev
build
: Compile the TypeScript code.start
: Run the application from the compiled JavaScript code.dev
: Run the application in development mode using Nodemon.
This project is licensed under the ISC License.