Blogger is a blog posting platform that allows users to:
- Create an account
- Write and publish blogs
- Read blogs posted by other users
This project is built using MongoDB, ExpressJS, and EJS to deliver a dynamic blogging experience.
- MongoDB: For data storage and retrieval.
- ExpressJS: To handle backend operations and API requests.
- EJS: For rendering dynamic web pages.
This project utilizes the following npm packages:
- cookie-parser: To handle cookies in Express.
- dotenv: To manage environment variables securely.
- ejs: To enable dynamic webpage rendering.
- express: The core backend framework.
- jsonwebtoken: For secure user authentication.
- mongoose: To interact with the MongoDB database.
- multer: For handling file uploads.
Use the following steps to setup this project on any system:
- Clone the Repository
git clone https://github.com/neelesh-124/Blogger cd blogger - Install Dependencies
npm install
- Set Up Environment Variables
- Create a
.envfile in the root directory. - Add the required environment variables:
MONGO_URL=your_mongodb_connection_string JWT_SECRET=your_secret_key
- Create a
- Start the Server
npm start
- Visit the Application
- Open your browser and go to
http://localhost:3000
- Open your browser and go to
- User Authentication (Login/Signup)
- Create, Edit, and Delete Blogs
- View and Read Blogs from Other Users
- Secure Sessions with JWT
- File Uploads for Blog Images