Blogify is a full-stack web application for creating and managing blog posts. It consists of a client-side developed with React and a server-side built with Node.js and Express.
- React
- Axios (HTTP Requests)
- React Router (Routing)
- Tailwind CSS (Styling)
- Node.js
- Express.js
- MongoDB (Database)
- Mongoose (ORM)
- JWT (Authentication)
- bcrypt (Password Hashing)
Follow these steps to set up and run Blogify on your local machine.
Ensure you have the following installed:
- Node.js (v14.x or later)
- npm (v6.x or later)
- MongoDB
git clone https://github.com/isayanpal/Blogify-v2.git
cd Blogify-v2
-
Navigate to the
server
directory:cd server
-
Install server dependencies:
npm install
-
Create a
.env
file in theserver
directory and add your MongoDB URI and other environment variables:MONGODB_URI=your_mongodb_url JWT_SECRET=your_jwt_secret VITE_URL=http://localhost:3000
-
Start the server:
npm run server
-
Open a new terminal window and navigate to the
client
directory:cd client
-
Install client dependencies:
npm install
-
Create a
.env
file in theclient
directory and add your environment variables:VITE_API_BASE_URL=http://localhost:5000
-
Start the client:
npm run dev
The client will be running on http://localhost:3000
and the server on http://localhost:5000
.
If you want to contribute to Blogify-v2, please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch
-
Make your changes and commit them:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature-branch
-
Open a pull request.