Giter VIP home page Giter VIP logo

teste-cowala's Introduction

🐨 Cowala Assessment

About   |   Technologies   |   How to use   |   Routes tables

📝 About

This repository was made to store the Cowala Challenges. These challenges are part of a selection process for a job opportunity.

I preferred to use a light organization just for readability.

The specific code for the challenges is in the services.

🛠️ Technologies

TypeScript NodeJS Insomnia ExpressJS

🚀 How to use

Pre-requisites:

  • ✅ NodeJS >= 17.3.0
  • ✅ Yarn >= 1.22.15
  • ✅ Git >= 2.31.1

Running

Clone the project repository

git clone https://github.com/k1vz/teste-cowala.git

Access project folder

cd teste-cowala

Install all dependecies

yarn

Run in develop mode (fastest way)

yarn dev

🌲 Routes tables

Algorithms

Request Method Route URI Body Response
Fibonnaci
(fibonnaci.js)
POST /algoritmos/fibonnaci {
"num": number
}
number[]
Classifier
(classificador.js)
POST /algoritmos/classificador {
"souEu": boolean,
"responsavel": boolean,
"nome": string
}
string[]
Cleaner
(faxina.js)
POST /algoritmos/faxina {
string: string
OR
string: null
}
{
string: string
}
Check Vality
(validade.js)
POST /algoritmos/validade {
"date": Date,
"vality": string
}
boolean
Create Frame
(moldura.js)
POST /algoritmos/moldura {
"height": number,
"width": number
}
---

Back-end

Request Method Belongs to Route URI Body Response
Create item in list POST Mercado /back-end/mercado/create {
"id": number,
"item": string,
"preco": number
}
"Status 200: Done!"
Read all items GET Mercado /back-end/mercado/readAllItems --- [
  {
  "id": number,
  "item": string,
  "preco": number
  }
]
Read only POST Mercado /back-end/mercado/readOnly {
"id": number
}
{
"id": number,
"item": string,
"preco": number
}
Update price POST Mercado /back-end/mercado/update {
"id": number,
"preco": number
}
"Status 200: Done!"
Delete item POST Mercado /back-end/mercado/delete {
"id": number
}
"Status 200: Done!"
--- --- --- --- --- ---
Create conversion POST Conversão
de Moedas
/back-end/conversao/create {
"id": number,
"moedaOriginal": string,
"moedaDeConversao": string, "valorEnviado": number
}
{
"id": number,
"moedaOriginal": string,
"moedaDeConversao": string,
"valorEnviado": number,
"valorConvertido": number
}
Read all items GET Conversão
de Moedas
/back-end/mercado/readAllItems --- [
  {
  "id": number,
  "moedaOriginal": string,
  "moedaDeConversao": string,
  "valorEnviado": number,
  "valorConvertido": number
  }
]
Read only one item POST Conversão
de Moedas
/back-end/conversao/readOnly {
"id": number
}
{
"id": number,
"moedaOriginal": string,
"moedaDeConversao": string,
"valorEnviado": number,
"valorConvertido": number
}
Delete item POST Conversão
de Moedas
/back-end/conversao/delete {
"id": number
}
"Status 200: Done!"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.