Teamwork is an internal social network for organizations’ employees. The goal of this application is to facilitate more interaction between colleagues and facilitate team bonding
- You need to have
git,NodeJSandnmpinstalled on your local environment. - Clone the application with
git clonecommand. npm installto install all the dependencies in local environment.cp .env.example .envto have env setup- Add values in
.envfile
Starting application run the following npm scripts
npm run migratefor migrating tables.npm startfor starting the server.
When you need to test the application and view test coverage run:
npm testfor running the tests, and getting coverage summary.
-
POST
/api/v2/auth/signupCreating account. -
POST
/api/v2/auth/signinSign in.Require authentication
-
GET
/api/v2/feedsRetrieve all articles posted -
GET
/api/v2/feeds/:tagId/tagsRetrieve articles by tag -
GET
/api/v2/articles/:articleIdFetch single article by its ID -
GET
/api/v2/author/articles/:authorIdFetch all articles by author ID -
POST
/api/v2/articlesCreate new article -
POST
/api/v2/:articleId/commentsAdd comment to an article -
PATCH
/api/v2/articles/:articleIdUpdate an article -
DELETE
/api/v2/articles/:articleIdDelete an article
Access link :Visit the link.
Access link :Visit the link.
GitHub page (gh-page) of this project accessed using this link Teamwork.