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:
Your mongoDB will contain 3 collections:users,posts,comments
This is how your mongoDB look like:
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:
Register:
Fresh Posts:
Popular Posts:
Add Post Image:
Add Post Info:
Full Post:
editComment:
deleteComment: