Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criar backend com JSON-Server #3

Open
rosanarezende opened this issue Aug 30, 2023 · 0 comments
Open

Criar backend com JSON-Server #3

rosanarezende opened this issue Aug 30, 2023 · 0 comments
Assignees
Labels
P da para fazer em menos de um dia

Comments

@rosanarezende
Copy link
Contributor

rosanarezende commented Aug 30, 2023

Instalar e configurar a lib axios

Será necessário criar 3 endpoints na url http://localhost:3000/

Os dados deverão estar no arquivo data.json dentro da pasta /database que estará na raiz do projeto

  • /usuarios
[
  {
  	id: "oioi",
  	email: rosana@email.com,
  	senha: minhasenha,
  },
  {
  	id: "eiei",
  	email: danilo@email.com,
  	senha: 123456,
  }
]
  • /unidades
[
  {
	id: abc,
	apelido: Painel 1,
	local: Rua 5,
	marca: Canadian,
	modelo: 155w,
	ativa: true
  },
    {
	id: def,
	apelido: Painel 2,
	local: Rua 10,
	marca: Borboletinha,
	modelo: 220w,
	ativa: false
  },
]
  • /lancamento
 [
  {
  	id: 123,
  	id_unidade: def,
  	data: 02/2022,
  	total: 80
  },
  {
  	id: 456,
  	id_unidade: def,
  	data: 03/2022,
  	total: 160
  }
]
@Luis-Vilar Luis-Vilar added the P da para fazer em menos de um dia label Aug 31, 2023
@deborasous deborasous self-assigned this Aug 31, 2023
Luis-Vilar added a commit that referenced this issue Sep 2, 2023
Cadastro Unidade  #3 - Versâo funcional - Falta trabalhar no CSS !!!
Luis-Vilar added a commit that referenced this issue Sep 3, 2023
Cadastro Unidade #3 - modificaçoes pedidas na Code review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P da para fazer em menos de um dia
Projects
None yet
Development

No branches or pull requests

3 participants