Teamwork is an internal social network for employees of an organization. The goal of this application is to facilitate more interaction between colleagues and promote team bonding.
Clone the repository and cd into the project directory Run npm install to install all project dependencies Create .env file and add your database details Run npm run dev-server to start local server which will run on localhost:3000
Admin Authorization
- POST
api/v1/auth/create-userto create employees account - PATCH
api/v1/auth/users/:userIdto edit employees account - DELETE
api/v1/auth/users/:userIdto delete employees account - POST
api/v1/categoriesto create category to group articles - PATCH
api/v1/categories/:categoryIdto edit category to group articles - GET
api/v1/flagsto get all flagged articles, gifs and comments - DELETE
api/v1/:typeId/:typeto delete flagged articles, gifs and comments where:typeIdspecifies the item (articles, gifs or comments)Id andtypespecifies article, gif or comment
User Authorization
- POST
api/v1/auth/signinto login into account - PATCH
api/v1/auth/change-passwordto change account password - PATCH
api/v1/auth/change-phototo change account photo - GET
api/v1/auth/usersto get all users - GET
api/v1/auth/users/:userIdto get a specific user based on userId - GET
api/v1/categories/to get all categories - GET
api/v1/categories/:categoryId/articlesto get all articles associated with a single category based on categoryId - POST
api/v1/articlesto create article - PATCH
api/v1/articles/:articleIdto edit article - GET
api/v1/articles/:articleIdto get article with articleId - DELETE
api/v1/articles/:articleIdto delete article with articleId - POST
api/v1/articles/:articleId/commentto comment on article with articleId - POST
api/v1/articles/:articleId/flagto flag article with articleId - POST
api/v1/gifsto create gif - GET
api/v1/gifs/:gifIdto get gif with gifId - DELETE
api/v1/gifs/:gifIdto delete gif with gifId - POST
api/v1/gifs/:gifId/commentto comment on gif with gifId - POST
api/v1/gifs/:gifId/flagto flag gif with gifId - PATCH
api/v1/comments/:commentIdto edit comment - DELETE
api/v1/comments/:commentIdto delete comment with commentId - POST
api/v1/comments/:commentId/flagto flag comment with commentId
To run test: run npm run test and npm run coverage to get coverage summary.
Node/Express - The web framework used posgreSQL - DataBase Management System
Access api via link
Access api documentation via link
Access api front end via link
To contribute, raise an issue and it will be reviewed
This is the version one of this api
This project is licensed under the MIT License - see the MIT License file for details
Andela OpenClassrooms Facebook DevCTrainingWithAndela Learners and mentors
