Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.02 KB

README.md

File metadata and controls

100 lines (71 loc) · 2.02 KB

TypoTales Blog

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.

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

Tech Stack

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)

Installation

To get a local copy up and running, follow these simple steps:

Prerequisites

  • Node.js and npm installed
  • MongoDB installed and running
  1. Clone the repository
git clone https://github.com/NivedHari/blog-mern.git
cd blog-mern
  1. Install backend dependencies
npm install
  1. 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

  1. Navigate to the frontend directory
cd client
  1. Install frontend dependencies
npm install
  1. 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/

Contributing

Contributions are always welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

Please adhere to this project's code of conduct.