Skip to content

Latest commit

 

History

History
64 lines (38 loc) · 2.15 KB

README.md

File metadata and controls

64 lines (38 loc) · 2.15 KB

How to run project:

1.Create empty folder.

2.There create 2 empty folders:backend and frontend.

3.Download main branch.Then insert backend folder into your backend folder of whole project.

4.Download master branch.Then move all files and folders into your frontend folder of whole project.

5.cd backend->npm install

6.BEFORE RUN PROJECT CREATE MONGODB AND SET URL INTO dbURL(backend->index.js)

7.cd frontend->npm install

8.cd backend->npm start

9.cd frontend->npm start

This is how your terminal look like:

terminal



Your mongoDB will contain 3 collections:users,posts,comments

This is how your mongoDB look like:

login

Go to browser console and write store.getState() to get info about auth/posts

Comments not stores into store due to dynamic queries

ALL PICTURES THAT YOU UPLOAD WILL STORE IN BACKEND/UPLOADS

To create admin go to your mongoDB user collection and add new field: admin:"true"

Login:

login

Register:

Register

Fresh Posts:

Fresh Posts

Popular Posts:

Popular Posts

Add Post Image:

Add Post Image

Add Post Info:

Add Post Info

Full Post:

Full Post

editComment:

editComment

deleteComment:

deleteComment