Skip to content

Repository files navigation

Graduation-Project

Description

Creating Community WebSite of programmers , which users can register with new account

User Story

Register : Create New account and active account with confirmation email .

Login : Signin and Start use features offered .

Logout : As a user i can Signout so nobody can use my Inof

Create : I can create new Posts related to event or programming problem , Comments , Answer to any questions

Edit : Previous posts or comment or answers

Delete : Previous posts or comment or answers

Edit Profile : as user if signed can edit profile

Answer : Can add Answers to questions

Admins there have full control like Delete and update and spam users with admin dashboard

Users Can add and update thire own Posts

project deployed on Netlify => https://quirky-dubinsky-3af6fa.netlify.app

project deployed on Heroku => https://pull-stack-developers.herokuapp.com

HTTP MethodauthorizationPathRequest BodyHTTP Code
POSTeveryone/user/create{email,username, password, role}ok 200 , error 400
POSTuser + admin/user/login{email or username, password}ok 200 , error 400
GETadmin only/user/ok 200 , error 400
DELETEadmin only/user/deleteusrid/:_idok 200 , error 400
GETuser/user/confirmation/:confcode/ok 200 , error 400
PUTuser/user/forgetPassword{email}ok 200 , error 400
PUTuser/user/resetPassword{resetCode, newPassword}ok 200 , error 400
POSTeveryone/user/googlelogin{Token id}ok 200 , error 400
postadmin + user/likes/{userId, PostId}ok 200 , error 400
deleteadmin + user/likes/:id{like id}ok 200 , error 400
GETadmin + user/likes/:PostId{postId}ok 200 , error 400
POSTadmin + user/comment/addComment{title, postId, userId}ok 200 , error 400
PUTadmin + user/comment/update{commentId, description}ok 200 , error 400
DELETEadmin + user/comment/delete/:idok 200 , error 400
GETadmin + user/posts/ok 200 , error 400
GETadmin + user/posts/getPost/:postidok 200 , error 400
POSTadmin + user/posts/addpost{img, description}ok 200 , error 400
PUTadmin + user/posts/updatepost/:_id{id}ok 200 , error 400
DELETEadmin + user/posts/delete/:_idok 200 , error 400

ERD

ERD

Models

  • user model
keytypeoptionsdefault value
usernameStringrequired, uniquen/a
emailStringrequired, uniquen/a
passwordStringrequiredn/a
rolesSchema requiredn/a
statusBooleann/afalse
  • roles model
keytypeoptionsdefault value
roleStringrequired, uniquen/a
  • posts model
keytypeoptionsdefault value
descriptionStringrequiredn/a
userIdSchema requiredn/a
timeNumberrequiredn/a
  • comments model
keytypeoptionsdefault value
userIdSchema requiredn/a
descriptionStringrequiredn/a
postIdSchema requiredn/a
  • room model
keytypeoptionsdefault value
toSchema requiredn/a
fromSchema requiredn/a
descriptionStringrequiredn/a
  • like model
keytypeoptionsdefault value
userIdSchema requiredn/a
postIdSchema requiredn/a
  • message model
keytypeoptionsdefault value
user1Schema requiredn/a
user2Schema requiredn/a
messagesarray of objectsrequiredn/a

UML

UML

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages