Welcome to TechBlog, a powerful and interactive blogging platform built using the MERN stack (MongoDB, Express.js, React.js, and Node.js). ππ» This platform allows users to write, publish, and engage with blogs, fostering an active tech community. π
π Live Link
π View Live Project
π API EndPoints Documentation
π Demo Video of Whole Project
π View Demo video
- β Secure sign-up, login, and logout functionality.
- β JWT-based authentication for secure user sessions.
- β Password hashing using bcrypt.js to enhance security.
- β Registered users can create, edit, and delete blog posts.
- β Published blogs are accessible to all users.
- β Clean and responsive UI for easy content management.
- β Users can post comments on blogs.
- β Comments update in real-time, promoting active discussions.
- β Optimized for all devices β desktops, tablets, and mobiles.
- β Tailwind CSS ensures a modern, sleek UI.
- β React.js (with Hooks & Context API) β for an interactive UI.
- β Tailwind CSS & Fluent UI β for fast, seamless, and responsive styling.
- β Formik & Yup β for form validation and handling.
- β Node.js & Express.js β for building the server-side API.
- β MongoDB & Mongoose β for a robust database structure.
- β JWT (JSON Web Tokens) β for user authentication.
- β Axios β for smooth frontend-backend communication.
- β bcrypt.js β for secure password hashing.
- β dotenv β for managing environment variables.
Before you begin, ensure you have the following installed on your system:βοΈ Node.js and npm (Node Package Manager) π’βοΈ MongoDB (running locally or via MongoDB Atlas) ποΈ
1οΈβ£ Clone the Repository π οΈ
git clone https://github.com/srinjoywork/techblog.git cd techblog
2οΈβ£ Install Dependencies π¦
npm install
3οΈβ£ Set Up Environment Variables π
-
Create a .env file in the root directory.
-
MONGO_URI=your_mongodb_connection_string
-
JWT_SECRET=your_secret_key
4οΈβ£ Run the Backend Server πββοΈ
npm run server
5οΈβ£ Start the Frontend π¨
npm start
6οΈβ£ Open the Application π
- π Visit http://localhost:3000/ in your browser.
π Like & Share Blogs β Allow users to like & share blog posts.π User Profiles β Personalized profiles with bio & social links.π Categories & Tags β Organize blogs for better discoverability.π Dark Mode π β Enhance user experience with theme switching.
TechBlog is a dynamic and interactive blogging platform built with the MERN stack. π Whether you're a developer sharing knowledge or a reader looking for insights, this platform provides a seamless experience. Happy blogging! ππ
