Skip to content

ramirescm/drivecar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker run --name imersao-postgres --network imersao-golang -e POSTGRES_PASSWORD=1234 -p 5432:5432 -d postgres

docker run -d --hostname aprenda-golang --name imersao-rabbit -p 5672:5672 rabbitmq:3 --network imersao-golang

-- pwd diretorio atual.. tmp diretorio dentro do container onde a local atual sera mapeado docker run -it --network imersao-golang --rm -v $(pwd):/tmp postgres bash

psql -h imersao-postgres -U postgres

\q

psql -h imersao-postgres -U postgres imersao < users.sql // run script to create table

psql -h imersao-postgres -U postgres imersao < folders.sql // run script to create table

psql -h imersao-postgres -U postgres imersao < files.sql // run script to create table

psql -h imersao-postgres -U postgres // conect cotainer

\c imersao // conect db

\dt // list tables

Run tests

Users go test ./internal/users... -v

Folders go test ./internal/folders... -v

Files go test ./internal/files... -v

go test -cover ./internal/... -v go test -coverprofile=coverage.out ./internal/... -v go tool cover -html=coverage.out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages