Skip to content

A project manager that allows you to add, retrieve, edit and delete projects. As well as adding collaborators. This application was built with NodeJS, using the ExpressJS framework, together with Sequelize ORM and the PostgreSQL database.

License

Notifications You must be signed in to change notification settings

diegossl/project-manager-api

Repository files navigation

Project Manager with Sequelize and PostgreSQL

A project manager to organize all the projects of a user, being able to add, retrieve, change and remove. Just as it is also possible to add and remove collaborators to projects.

Setup

To execute the project, it will be necessary to install the dependencies by typing the following command in the terminal:

yarn install

Then create a file called .env and copy the contents of the file .env.exemple to it, which already exists at the root of the project. After that, fill in the fields with your credentials.

Use

To execute the project, type the following command in the terminal:

yarn start

Routes

Base URL http://localhost:3000

In all routes that require the authentication token, it must be sent in the request header.

Authentication

POST /login

{
   "email": "example@gmail.com",
   "password": "example123"
}

GET /logout

{
   "token": "authenticationToken"
}

User

GET /user/list

{
   "token": "authenticationToken"
}

GET /user/id

{
   "token": "authenticationToken"
}

POST /user/register

{
   "email": "example@gmail.com",
   "username": "Example",
   "password": "example123"
}

PUT /user/update/id

{
   "token": "authenticationToken"
}
{
   "email": "example@gmail.com",
   "username": "Example",
   "password": "example123"
}

DELETE /user/delete/id

{
   "token": "authenticationToken"
}

Project

GET /project/list

{
   "token": "authenticationToken"
}

GET /project/id

{
   "token": "authenticationToken"
}

POST /project/register

{
   "name": "Project Example",
   "description": "This is an example of a project",
   "deadline": "10/08/2025"
}

PUT /projecter/update/id

{
   "token": "authenticationToken"
}
{
   "name": "Project Example",
   "description": "This is an example of a project",
   "deadline": "10/08/2025"
}

DELETE /project/delete/id

{
   "token": "authenticationToken"
}

License

MIT

About

A project manager that allows you to add, retrieve, edit and delete projects. As well as adding collaborators. This application was built with NodeJS, using the ExpressJS framework, together with Sequelize ORM and the PostgreSQL database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published