Skip to content

jadsondorneles/tkmanagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it is

TK Management is a simplified task manager. Fast, casual and simple to use.

Back-end

How to run the project

First install NodeJS according to your O.S Once installed open the directory in the terminal or vscode and run the following command

To execute the project it is necessary to install its dependencies. To do this, run the following command.

npm install

To run the project in development mode, use the following command.

npm dev

To run the project in production mode, use the following command.

npm start

To run the application tests run the following command.

npm test

Usage

List of Tasks

Return Example
[
    {
        "documents": [],
        "_id": "5f5e53491daa610017e3be05",
        "name": "Task 01",
        "customer": "Tesla",
        "due_date": "2020-09-10T00:00:00.000Z",
        "legal_date": "2020-09-11T00:00:00.000Z",
        "fine": true,
        "createdAt": "2020-09-13T17:13:45.468Z",
        "updatedAt": "2020-09-13T17:13:45.468Z",
        "__v": 0
    }, 
    {
        "documents": [],
        "_id": "5f5e53491daa6100ee7edbe99",
        "name": "Task 02",
        "customer": "Microsoft",
        "due_date": "2020-09-13T00:00:00.000Z",
        "legal_date": "2020-09-14T00:00:00.000Z",
        "fine": true,
        "createdAt": "2020-09-17T17:13:45.468Z",
        "updatedAt": "2020-09-19T17:13:45.468Z",
        "__v": 0
    }
]`

Specific Task

Return Example
[{
    "documents": [],
    "_id": "5f5e53491daa610017e3be05",
    "name": "Task 01",
    "customer": "Tesla",
    "due_date": "2020-09-10T00:00:00.000Z",
    "legal_date": "2020-09-11T00:00:00.000Z",
    "fine": true,
    "createdAt": "2020-09-13T17:13:45.468Z",
    "updatedAt": "2020-09-13T17:13:45.468Z",
    "__v": 0
}]`

Create Task

Body Data Example
{
    "name": "Task 01",
    "customer": "Tesla",
    "due_date": "2020-09-10",
    "legal_date": "2020-09-11",
    "fine": true
}`
Return
{
    result: true,
    message: 'Task created successfully'
}`

Update Task

Body Data Example
{
    "name": "Task Update 01",
    "customer": "Tesla",
    "due_date": "2020-09-10",
    "legal_date": "2020-09-11",
    "fine": true
}`
Return
{
    result: true,
    message: 'Task updated successfully'
}`

Delete Task

Body Data Example
{
    "name": "Task Update 01",
    "customer": "Tesla",
    "due_date": "2020-09-10",
    "legal_date": "2020-09-11",
    "fine": true
}`
Return
{
    result: true,
    message: 'Task removed successfully'
}`

Insert Document in Task

Upload FormData File with Max Size 2MB
Return
{
    result: true,
    message: 'Document uploaded successfully'
}`

Delete Document in Task

Return
{
    result: true,
    message: 'Document removed successfully'
}`

Libraries Used

Dotenv

Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.

Express

Fast, unopinionated, minimalist web framework for node.

Mongoose

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Mongoose supports both promises and callbacks.

Morgan

HTTP request logger middleware for node.js

Multer

Multer is a node.js middleware for handling multipart/form-data, which is primarily used for uploading files. It is written on top of busboy for maximum efficiency.

Jest

A comprehensive JavaScript testing solution. Works out of the box for most JavaScript projects. Fast, interactive watch mode only runs test files related to changed files. Capture snapshots of large objects to simplify testing and to analyze how they change over time.

Supertest

HTTP assertions made easy via superagent.

Front-end

The TK Management WebApp was built using ReactJS. It is still in Beta. List only as tasks

How to run the project

First install NodeJS according to your O.S Once installed open the directory in the terminal or vscode and run the following command

npm install

Runs the app in the development mode.

npm start

Libraries Used

Axios

Used to make HTTP requests

Material UI React

Used in Drawer and Tabs

Styled-Components

Great for standardization in production. Allows you to use component-level styles in the application. They are written in a mixture of JavaScript and CSS.

About

TK Management is a simplified task manager. Fast, casual and simple to use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors