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. UI Components:
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 requires Node.js 10.0+. Checkout the docs to see installation guidelines. The code has been built with simplicity, reusability and code quality in mind.
git clone https://github.com/sebalu/teamwork.git
npm install
.env
file and specify the DATABASE_URL
, DB_TEST
and secretkey
.'postgres://postgres:mynameis@localhost:5432/tw-test'
.npm run test
npm run dev
The following endpoints have been implemented:
Request header:
Content-Type: application/json
METHOD | Endpoint | Description |
---|---|---|
POST | /auth/signup | Register an account |
POST | /auth/signin | Sign in |
Request headers:
Content-Type: application/json
Authorization: Bearer<space>token
METHOD | Endpoint | Description |
---|---|---|
POST | /articles | Create a new article |
PATCH | /articles/:id | Modify a specific article |
DELETE | /articles:id | Delete a specific article |
GET | /articles/:id | Get a specific article |
GET | /feeds?page=<> | Get paginated articles |
POST | /articles/:id/comments | Comment on a specific article |
GET | /articles/category?category=<> | Get articles in a specific category |