Skip to content

Latest commit

 

History

History
83 lines (50 loc) · 2.2 KB

README.md

File metadata and controls

83 lines (50 loc) · 2.2 KB

MERN-BLOG

this project is for Blog project, the user can CRUD a Post, and find posts by category or author name ,add Category .I coded this project using HTML5, CSS3, ECMA6, React, Context Api , Node.js, Express.js ,Javascript, MongoDb and Mongoose.

Post Model:

  • Add a Post
  • Delete Posts by the Post id
  • Find all Posts by the Category name
  • Update Posts By same Author

User Model:

  • Create a User account
  • Delete Posts by the Post id that has written
  • Find all Posts by the User name
  • Update User account
  • Update his Posts

Category Model:

  • Add a Category
  • Find all Posts by a Category name
  • Find all Categories

You can find Postman Collection in this link

To try this project in your machine

after cloning the project add DB by adding .env file to api file and write this:

MONGO_URL=mongodb://localhost:27017/YOUR_DATABASE_NAME
PORT=5000

and inside api file in the same path write this in the terminal:

npm install
npm start

and this message will show in terminal after connecting successfuly to db: **connected to db sccessfully** after that open client file and in the same path write this in the terminal:

npm install
npm start

SOME PICTURES FROM PROJECT

login

login

register

register

home page

home page

update user

update user

create post

create post

single post

single post

404 Page

404