Skip to content

toannv1803/ocr.service.backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

dịch vụ này sẽ xử lý nghiệp vụ liên quan tới image

hỗ trợ:

  • Upload, download hình
  • Thêm xóa sửa thông tin của hình

REQUIREMENT

- Rabbitmq
- Mongodb

INSTALL

#install golang
sudo snap install go --classic

RUN

go run .

DOC

// generate doc
//go get -u github.com/swaggo/swag/cmd/swag
//sudo cp ~/go/bin/swag /usr/bin/
//swag init
// access doc
http://localhost/docs/index.html

CONFIG

NO_SSL_PORT=
ENV=development|production

RABBITMQ_HOST=host
RABBITMQ_PORT=5672
RABBITMQ_USERNAME=
RABBITMQ_PASSWORD=
RABBITMQ_VHOST=/

MONGODB_HOST=host
MONGODB_PORT=27017
MONGODB_USERNAME=
MONGODB_PASSWORD=

Docker

docker build -t ocr.service.backend:1.0.0 .

TEST (not yet)

unit test

go test $(go list ./... | grep -v /vendor/ | grep -v /test)

e2e test

go test ./test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages