Coder Social home page Coder Social logo

suficienciawebservidor's Introduction

  1. Para execução no SO Windows:
  • Com o XAMPP e o Git instalados na máquina, acesse o diretório htdocs com um terminal
  • Faça o clone do repositório:
    >git clone https://github.com/chesini/suficienciaWebServidor
  • Adicione o seguinte trecho no arquivo da pasta xampp/apache/conf/extra/httpd-vhosts.conf
  <VirtualHost *:80>
      DocumentRoot "C:/xampp/htdocs/suficienciaWebServidor"
      <Directory C:/xampp/htdocs/suficienciaWebServidor>
          AllowOverride All
          Order Allow,Deny
          Allow from All
      </Directory>
      ErrorLog "logs/suficienciaWebServidor"
  </VirtualHost>
  1. Para a criação da Base de Dados no MySQL via CLI:
CREATE DATABASE IF NOT EXISTS estagio 
DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

USE estagio;

DROP TABLE IF EXISTS estagio.empresa;
CREATE TABLE estagio.empresa ( 
    idempresa SERIAL NOT NULL , 
    nomeempresa TEXT NOT NULL , 
    responsavelempresa TEXT NOT NULL , 
    telefone TEXT NOT NULL , 
    email TEXT NOT NULL , 
    PRIMARY KEY (idempresa)
) ENGINE = InnoDB;

DROP TABLE IF EXISTS estagio.estagiario;
CREATE TABLE estagio.estagiario ( 
    idestagiario SERIAL NOT NULL , 
    nomeestagiario TEXT NOT NULL , 
    regacademico INT UNSIGNED NOT NULL , 
    email TEXT NOT NULL , 
    telefone INT UNSIGNED NOT NULL , 
    PRIMARY KEY (idestagiario)
) ENGINE = InnoDB;

DROP TABLE IF EXISTS estagio.contratoestagio;
CREATE TABLE estagio.contratoestagio ( 
    idcontratoestagio SERIAL NOT NULL , 
    idestagiario INT NOT NULL , 
    idempresa INT NOT NULL , 
    datainicio DATE NOT NULL , 
    datafim DATE NOT NULL , 
    cargahoraria INT NOT NULL , 
    descricao TEXT , 
    idlogin INT NOT NULL,
    PRIMARY KEY (idcontratoestagio)
) ENGINE = InnoDB;

DROP TABLE IF EXISTS estagio.login;
CREATE TABLE estagio.login ( 
    idlogin SERIAL NOT NULL , 
    login TEXT NOT NULL , 
    senha TEXT NOT NULL ,
    nomeresponsavel TEXT NOT NULL ,
    descricao TEXT NOT NULL , 
    PRIMARY KEY (idlogin)
) ENGINE = InnoDB;

INSERT INTO login (login, senha, nomeresponsavel, descricao) VALUES ('[email protected]', '1234', 'Leandro Chesini', 'dev');
INSERT INTO login (login, senha, nomeresponsavel, descricao) VALUES ('[email protected]', 'abcde', 'Administrador do Sistema', 'admin');
  1. Usuários e senhas cadastrados para teste:

suficienciawebservidor's People

Contributors

chesini 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.