larasouzabr / cadastro-de-calouros-1

An API developed with NodeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cadastro de Calouros

An API developed in NodeJS for the Introduction to Software Engineering class, in order to explain about software testing with a focus on unit tests, integration tests and test coverage.

๐ŸŽฎ Getting started

๐Ÿ”‹ Downloading softwares

๐Ÿงฌ Clone this repository

git clone https://github.com/joaogabriel-sg/cadastro-de-calouros.git

๐Ÿ“‚ Move yourself to the appropriate repository

cd cadastro-de-calouros

๐ŸŽ‰ Install the package dependencies

npm install
# or
yarn

๐Ÿ”ฅ Usage

npm run dev
# or
yarn dev

๐Ÿงช Testing

npm test
# or
yarn test

๐Ÿšš API

๐Ÿšš Routes

GET     /students         Get students
GET     /students/{id}    Get a student
POST    /students         Create a new student
PUT     /students/{id}    Update an existent student
DELETE  /students/{id}    Delete a student

๐Ÿšš Student structure

interface Student {
  id: string,
  name: string,
  email: string,
  cep: number,
  address: string,
  number: number,
  neighborhood: string,
  city: string,
  uf: string,
  degree: string,
  age: number,
},

About

An API developed with NodeJS.


Languages

Language:HTML 75.0%Language:JavaScript 21.8%Language:CSS 3.1%