- Node.js
- Express.js
- MongoDB
- React
- TailwindCSS
- @material-tailwind/react
You need to have a redis server running locally on your system. To install and run a server locally follow this documentation:- https://redis.io/docs/install/install-redis/
- You can run the below command which would install the packages simultaneously for both client and server:
npm run install
- Start the backend server:
cd server && npm run dev
- Start the frontend app:
cd client && npm run start
- Frontend application should be up at: http://localhost:3000/ and backend server should be up at http://localhost:2000/
Method | Endpoint | Description |
---|---|---|
POST | /api/auth/register |
Registering a new user |
POST | /api/auth/login/ |
Login for registered user |
GET | /api/auth/logout/ |
Logout for current user |
POST | /api/blogs/ |
Create a new blog |
GET | /api/blogs/ |
Retrieve all blogs |
GET | /api/blogs/:blogId |
Retrieve a specific blog |