BlogsBee is a web application
• A BLOG web application in which there are 2 panels i.e Admin Panel and User Panel.
• In user panel user will be able to create a blog after registration and Login.
• Furthermore,the user can edit it’s blog (i.e. update or delete). User can see all the posts created by other user, user can follow and unfollow other user and like dislike other user’s post.
• In Admin Panel,admin can do all the things but there are some aditional features like admin can create categories from which user can select while creating post.
• Admin can block any user, if admin will find out the user’s unwanted behaviour
Client: React, Redux, TailwindCSS
Server: Node, Express
Database: MongoDB
MongoDB, ExpressJS, ReactJS, NodeJS, TailwindCSS, JWT
To run this project, you will need to add the following environment variables to your .env file
MONGODB_URI
JWT_TOKEN_EXPIRE = "10d"
JWT_KEY
CLOUDINARY_CLOUD
CLOUDINARY_API_KEY
CLOUDINARY_SECRET_KEY
SMPT_MAIL
SMPT_PASSWORD
SMPT_SERVICE = "gmail"
Clone the project
git clone https://github.com/Anamika1-cpu/BlogsBee
Go to the project directory
cd backend
Install dependencies
npm install
Here, you have to replace the value of resetURL from 2 controllers (i.e.,resetPasswordToken and generateVerificationMail ) in controllers/user/userCntrl.js
//generateVerificationMail
const resetURL = `https://localhost:3000/${verificationToken}`;
//resetPasswordToken
const resetURL = `https://localhost:3000/${token}`;
Start the server
npx nodemon
Clone the project
git clone https://github.com/Anamika1-cpu/BlogsBee
Go to the project directory
cd frontend
Install dependencies
npm install
Change the url from src/utils/baseUrl
export const baseUrl = "http://localhost:5000";
Start the server
npm start
- Take a look at the existing Issues
- Fork the Repo create a branch for any issue that you are working on and commit your work.
- Create a ** Pull Request, which will be promptly reviewed and given suggestions for improvements by the community.
- Add screenshots or screen captures to your Pull Request to help us understand the effects of the changes that are included in your commits.
1. Start by forking the BlogsBee repository. Click on the symbol at the top right corner.
2. Clone your forked repository:
git clone https://github.com/<your-github-username>/BlogsBee.git
3. Navigate to the new project directory:
cd BlogsBee
4. Set upstream command:
git remote add upstream https://github.com/Anamika1-cpu/BlogsBee.git
5. Create a new branch:
git checkout -b YourBranchName
or
git branch YourBranchName
git switch YourBranchName
6. Sync your fork or local repository with the origin repository:
- In your forked repository click on "Fetch upstream"
- Click "Fetch and merge".
git fetch upstream
git merge upstream/main
Github Docs for Syncing
7. Make your changes to the source code.
8. Stage your changes and commit:
package.json
or package-lock.json
file
git add .
or git add *
. Instead, stage your changes for each file/folder
git add file/folder
git commit -m "<your_commit_message>"
9. Push your local commits to the remote repository:
git push origin YourBranchName
10. Create a Pull Request!
11. Congratulations! You've made your first contribution! 🙌🏼