BlogEx is a blog application where user can create account to add blogs with coverImage , add comments , upvote the blog, read full blog and summarize that blog with ai, also main focus was on learning backend(node express mongo atlas ejs) so used minimal frontend also it implements jwt auth via cookie , password hashing and gemini ai integration for summary.
Backend: Node.js, Express, MongoDB Atlas, EJS
Frontend: Minimal frontend with EJS templates
Authentication: JWT (via cookies), bcrypt for password hashing
AI Integration: Gemini AI for blog summarization
Note
The application is deployed on Render’s free tier, which provides 0.1 CPU and 512MB RAM.
Due to these limitations, you may need to reload the page twice if you encounter ‘not exist’ errors or if image loading takes time.
due to high latency as the region is Oregon Usa so, might takes few more seconds to load the server
live link : https://blogex.onrender.com/
Clone the repository
git clone https://github.com/ParamPS25/Blogex.gitInstall dependencies
npm install
Set up environment variables: Create a .env file in the root directory and add the following:
ACCESS_TOKEN_SECRET_KEY = your_jwt_secret
API_KEY = your_gemini_api_key
PORT = 8080
MONGO_URL= your_mongodb_atlas_uri
Start the application
npm start