Skip to content

mrdeephang/BLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog 📝

A full-stack blogging platform with markdown support and authentication.

Screenshots

Home Page Blog Post Editor View

Tech Stack

Backend: Express.js, MongoDB, Mongoose, JWT
Frontend: Next.js, Material-UI, react-markdown

Setup

1. Clone & Install

git clone <repository-url>
cd blog

# Install client
cd client && yarn install

# Install server
cd ../server && yarn install

2. Configure Environment

Create .env in server/ folder:

NODE_ENV=development
PORT=8000
DATABASE=your_mongodb_uri
DATABASE_PASSWORD=your_password
JWT_SECRET=your_secret
JWT_EXPIRES_IN=90d
JWT_TOKEN_EXPIRES_IN=90

3. Run

Terminal 1:

cd server
yarn prod

Terminal 2:

cd client
yarn build && yarn start

Visit http://localhost:3000

Features

  • Create, edit, and delete blog posts
  • Markdown support
  • JWT authentication
  • Responsive design
  • SSR with Next.js

Project Structure

blog/
├── client/         # Next.js frontend
└── server/         # Express.js backend

Author

Deephang Thegim

License

MIT

About

Blog - A Blogging Application made for Internet & Intranet practical in a limited time constraint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors