An open API service indexing awesome lists of open source software.

https://github.com/raoufsezar/mern-blog

this project is for Blog project, the user can CRUD a Post, and find posts by category or author name ,add Category .
https://github.com/raoufsezar/mern-blog

context-api css3 ecma6 expressjs flexbox-css html5 javasccript mongodb mongoose nodejs react react-router rest-api

Last synced: 2 months ago
JSON representation

this project is for Blog project, the user can CRUD a Post, and find posts by category or author name ,add Category .

Awesome Lists containing this project

README

          

# 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](https://github.com/RaoufSEZAR/MERN-BLOG/blob/main/MERN_BLOG.postman_collection.json)

## 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](https://user-images.githubusercontent.com/64332249/148446060-8d826308-11b4-4ac6-b0a1-11f7d72db37e.png)

### register

![register](https://user-images.githubusercontent.com/64332249/148446098-b2e23896-0d7f-4267-b450-480650972eff.png)

### home page

![home page](https://user-images.githubusercontent.com/64332249/148446191-90022695-0f5a-44b9-9a06-a220e9553fc1.png)

### update user

![update user](https://user-images.githubusercontent.com/64332249/148446212-8c7f7e2b-28d3-439c-b875-0b9606849263.png)

### create post

![create post](https://user-images.githubusercontent.com/64332249/148446274-badcaf3f-0701-4f17-a425-1c92400effdb.png)

### single post

![single post](https://user-images.githubusercontent.com/64332249/148446304-26a35067-d607-4053-920f-d30a7ace37a0.png)

### 404 Page

![404](https://user-images.githubusercontent.com/64332249/148449113-d12bbbf3-c99b-475f-a0b0-efffd47f97a7.png)