https://github.com/devsafix/next-blog-backend
A simple Blog Application built with TypeScript, Express.js, Prisma, PostgreSQL.
https://github.com/devsafix/next-blog-backend
cors expressjs nodejs pnpm postgresql prisma-orm typescript
Last synced: 9 months ago
JSON representation
A simple Blog Application built with TypeScript, Express.js, Prisma, PostgreSQL.
- Host: GitHub
- URL: https://github.com/devsafix/next-blog-backend
- Owner: devsafix
- Created: 2025-09-13T16:51:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-21T17:16:48.000Z (9 months ago)
- Last Synced: 2025-09-21T19:21:47.358Z (9 months ago)
- Topics: cors, expressjs, nodejs, pnpm, postgresql, prisma-orm, typescript
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building a Blog App to Practice Prisma ORM
A simple **Blog Application** built with **TypeScript, Express.js, Prisma, PostgreSQL**.
---
## Features
- User Management
- Blog Post Management
- Blog Stats Using Prisma Aggregate
- Modular project structure
- Ready to extend with blog modules
---
## Installation
Clone the repository:
```bash
git clone https://github.com/devsafix/next-blog-backend
cd prisma-blog-app
```
Install dependencies:
```bash
# using npm
npm install
# using yarn
yarn install
# using pnpm
pnpm install
```
Setup environment variables:
```bash
cp .env.example .env
```
Run the development server:
```bash
# using npm
npm run dev
# using yarn
yarn dev
# using pnpm
pnpm dev
```
---
## Folder Structure
```
Prisma-Blog/
│── node_modules/ # Dependencies
│── src/
│ ├── app.ts # Express app configuration
│ ├── server.ts # Server entry point
│ ├── config/ # Environment & configuration files
│ └── modules/ # Application modules (posts, users, etc.)
│── package.json # Project metadata & scripts
│── package-lock.json # Lockfile (npm)
│── tsconfig.json # TypeScript configuration
│── README.md # Documentation
```
---
## Scripts
```bash
# Run in development mode
npm dev
# Build for production
npm build
# Run production build
npm start
```
---
## Learning Objective
- Connect a Node.js app with Prisma ORM
- Build modular APIs
- Manage environment variables
- Structure scalable backend projects