GithubHelp home page GithubHelp logo

devgithubsharma / blogsbee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anamika1-cpu/blogsbee

1.0 0.0 0.0 1.27 MB

A Blog web application in which people can create blogs, follow, unfollow users, like dislike posts and much more.

Home Page: https://magnificent-pothos-b51811.netlify.app/

License: MIT License

JavaScript 99.18% CSS 0.19% HTML 0.62%

blogsbee's Introduction

BlogsBee

Logo

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

Tech Stack

Client: React, Redux, TailwindCSS

Server: Node, Express

Database: MongoDB

Author

🛠 Skills

MongoDB, ExpressJS, ReactJS, NodeJS, TailwindCSS, JWT

Environment Variables

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"

Screenshots

App Screenshot

App Screenshot

App Screenshot

App Screenshot

App Screenshot

Run Locally (Backend)

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

Run Locally (Frontend)

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

Contributing

  • 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.

How to make a Pull Request?

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".

Alternatively, Git CLI way to Sync forked repository with origin repository:

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:

⚠️ Make sure not to commit package.json or package-lock.json file

⚠️ Make sure not to run the commands 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! 🙌🏼

blogsbee's People

Contributors

anamika1-cpu avatar anishdubey27 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.