Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 691 Bytes

File metadata and controls

49 lines (33 loc) · 691 Bytes

Express.js & ORM

Pré-requisitos

  • yarn ou npm

aqui no tutorial usaremos yarn

Passo a passo

Primeiro, clone o repositorio

git clone https://github.com/FGA-GCES/Workshop-Docker-Entrega-01

cd Workshop-Docker-Entrega-01/trabalho_individual/users-service

Inicie o banco de dados

docker run \
    --name users-service-db \
    -e MYSQL_ROOT_PASSWORD=password \
    -e MYSQL_DATABASE=db \
    -p 7201:3306 \
    -d \
    mysql:5.7.20

Instale as dependencias:

yarn

Faça as migrations:

yarn db:migrate

Rode a aplicação:

yarn watch

Acesse a api em http://localhost:7101.