A minimal blog web application built with Express.js, EJS templates, JWT auth, and SQLite.
Users can register, log in, and perform full CRUD operations (Create, Read, Update, Delete) on blog posts.
- JWT-based Authentication
- Secure login and signup flow.
- Passwords hashed before storage.
- SQLite Database
- Lightweight and persistent local storage.
- EJS Templates
- Server-side rendering for all pages.
- CRUD for Blog Posts
- Create, edit, delete, and view posts. User Accounts
- Each post is linked to its author.
| Layer | Technology |
|---|---|
| Backend | Node.js + Express |
| Templating Engine | EJS |
| Database | SQLite (via better-sqlite3 or sqlite3) |
| Authentication | JWT (JSON Web Tokens) |
| Environment Variables | dotenv |
| Development | nodemon |
1. Clone the repository
git clone https://github.com/Omprakash-Marri/Blog-Platform.git
cd Blog-Platform2. Install dependencies
npm install3. Create .env
- Create an environment variable with name JWTSECRET and set its value (string).
4. Start the server
npm run dev