- Frontend: React
- Backend: Node.js (Express)
- Database: MongoDB
- User authentication (registration and login)
- Create, read, update, and delete blog posts
- Track and display posts read by users
- Responsive design
- Markdown editor for post creation
- Header image upload for posts
-
Create a
.env
file in the backend directory with the following content:MONGO_URI=your_mongo_db_connection_string JWT_SECRET=your_jwt_secret_key
-
Install dependencies and start the server:
cd backend npm install npm run dev
- Install dependencies and start the development server:
cd frontend npm install npm start
- Set up a cloud MongoDB database (e.g., MongoDB Atlas).
- Deploy the backend to a service like Heroku or AWS, ensuring environment variables are correctly set.
- Build the React application:
npm run build
- Deploy the static files to a hosting service like Netlify, Vercel, or GitHub Pages.