A simple blog application with React frontend and Node.js backend.
frontend/: React application with Redux (Node 14)backend/: Express.js API with TypeScript (Node 18)
- Navigate to the backend directory:
cd backend- Install dependencies:
npm install- Create a
.envfile in the backend directory with the following content:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/blog-app
- Start the development server:
npm run dev- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm start- Create, read, update, and delete blog posts
- Responsive design using Bootstrap
- Redux state management
- MongoDB database
- TypeScript backend
- RESTful API
- GET
/api/blogs: Get all blog posts - GET
/api/blogs/:id: Get a single blog post - POST
/api/blogs: Create a new blog post - PUT
/api/blogs/:id: Update a blog post - DELETE
/api/blogs/:id: Delete a blog post