Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

srbrunoferreira/storer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

storer

Interface

Functionalities

  • Create task
  • Delete task
  • Edit task

Front-end

React dependencies

  • Material UI
  • Axios

API structure

Node dependencies

  • Express
  • Mongoose

Folder structure

/controllers - a controller receives the incoming request, distributes to the services layer and then returns a response. The controllers are managers/supervisors.

/middlewares - stores more specific functions.

/models - stores the database models.

/routes - stores the routes of the API.

/services - a service receives the data it needs to execute a task and returns the result to the controller layer. Figures out the individual details algorithms/business logic/database calls/etc involved in completing the request.

Routes

/tasks

/tasks/{id}

Verb Path Action Route
GET /tasks index photo.getAll
GET /tasks/{id} show photo.getPhoto
POST /tasks create photo.create