Code Monkey home page Code Monkey logo

desafio-servidor's Introduction

É necessário inserir os tipos de usuário no banco de dados antes de executar chamadas à API. Para isso, faça:

INSERT INTO tb_roles VALUES(1, 'ROLE_USER');
INSERT INTO tb_roles VALUES(2, 'ROLE_ADMIN');

Para popular ao banco de dados, use:

INSERT INTO `tb_email` VALUES
(2,'[email protected]'),
(1,'[email protected]');

INSERT INTO `tb_telefone` VALUES
(1,'8236164375','residencial'),
(2,'82992954594','celular'),
(3,'8338931962','residencial'),
(4,'83983258869','celular');

INSERT INTO `tb_usuario` VALUES
(1,'Cristo Redentor','58071340','João Pessoa','427','12345678910','Loteamento Cidade Redenção','Giovanni Paula','$2a$10$GakM8HM7uLTdVBBmQojiW.H2ROMrFVuAZtbP7ZER.jnCcqJ4COxZq','PB'),
(2,'Senador Arnon de Melo','57315794','Arapiraca','298','79293996307','Rua Josefa Antônia do Nascimento','Emanuelly Claudia Fernanda Porto','$2a$10$aSbPAh6z6SBgAlup/Mv8Xed.MkMoaGAxAqeU.W1ZIZMO8BRK9STYS','AL');

INSERT INTO `tb_usuario_tb_email` VALUES (1,1),(2,2);
INSERT INTO `tb_usuario_tb_roles` VALUES (1,2),(2,1);
INSERT INTO `tb_usuario_tb_telefone` VALUES (1,1),(1,2),(2,3),(2,4);

Para rodar o projeto:

mvn spring-boot:run

Para acessar o sistema, use os seguintes dados:

  • Usuário admin

    • CPF: 12345678910
    • senha: 123456
  • Usuário comum:

    • CPF: 79293996307
    • senha: 123456

desafio-servidor's People

Contributors

grigati avatar

Watchers

 avatar

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.