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.
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.
make sure you have Node Js running on your system to Install TEAMWORK
Project Structure
Server/
config/
controllers/
helpers/
middleware/
model/
routes/
test/
server.js
To run this Web App follow the following steps
git clone https://github.com/UsanaseD/TEAMWORK
cd TEAMWORK
npm install #'Install dependencies'
npm run start #'past http://localhost:2000/ in your browser'
npm run transpile # ' Transpile your ES6 code into ./dist forlder'
npm run test #'run the test '
To test all these endpoints localally you should use postman chrom.
check their HTTP Methods (before endpoints)
(POST)/api/v1/article #'endpoint to post an article'
(GET)/api/v1/article/:id # 'endpoint to select a specified article'
(GET)/api/v1/reparticle #'endpoint to select all ReportedArticles'
(GET)/api/v1/article #'endpoint to select all articles'
(PATCH)/api/v1/article/:id # 'endpoint to update an article'
(DELETE)/api/v1/article/:id #'endpoint to delete an article'
(POST)/api/v1/comment #'endpoint to post a comment'
(POST)/api/v1/articleflag #'endpoint to flag an article'
(POST)/api/v1/commentflag #'endpoint to flag a comment'
(POST)/api/v1/auth/signup #'endpoint to signup'
(POST)/api/v1/auth/login #'endpoint to login'