- Backend infrastructure for a blogging platform, using Node.js, Express.js, and MongoDB, facilitating seamless management of user and admin roles with role-based authentication.
- Robust user authentication functionalities, including sign-in and sign-up features, ensuring secure access for both users and administrators.
- Users can create, edit, delete and view their own blogs.
- Users can like/unlike, comment, search by tags and view blogs.
- Administrators can manage user, blogs and tags.
-
Fork the repository.
-
Clone the project.
git clone repository-url
- Install dependencies.
npm install
- Create and update
.env
file.
PORT = port-no
MONGODB_URL = your mongodb database url
JWT_SECRET_KEY = your jwt secret key
- Run the server.
node app.js
- Check the endpoints via postman/frontend.