TypoTales Blog is a full-stack blog application built using the MERN (MongoDB, Express.js, React, Node.js) stack. This project allows users to create, edit, delete, and view blog posts. It also includes user authentication and authorization features.
- User Authentication (Login, Register)
- Create, Read, Update, and Delete (CRUD) operations for blog posts
- User roles and permissions
- Comment functionality
- Admin dashboard
- Responsive design
- Integration with MongoDB for data storage
- Light/dark mode toggle
Frontend:
- React
- Redux (for state management)
- Tailwind CSS (for styling)
Backend:
- Node.js
- Express.js
- MongoDB (with Mongoose for object modeling)
- JWT (JSON Web Tokens for authentication)
- bcrypt (for password hashing)
To get a local copy up and running, follow these simple steps:
Prerequisites
- Node.js and npm installed
- MongoDB installed and running
- Clone the repository
git clone https://github.com/NivedHari/blog-mern.git
cd blog-mern
- Install backend dependencies
npm install
- Create a .env file in the root directory and add the following:
mongo=your_mongodb_connection_string
jwt_secret=your_jwt_secret
4.Start the backend server
npm run dev
Frontend Setup
- Navigate to the frontend directory
cd client
- Install frontend dependencies
npm install
- Create a .env file in the client directory and add the following:
VITE_FIREBASE_API_KEY="your_firebase_Api_Key"
4.Start the frontend server
npm run dev
The application should now be running at http://localhost:5173/
Contributions are always welcome!
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a pull request
Please adhere to this project's code of conduct
.