https://documenter.getpostman.com/view/17633056/2s9Yyth1cP
make users
make project
make datacenter
make db-up
make db-stop
export PATH="$PATH:$(go env GOPATH)/bin"
make grpc-users
make grpc-datacenter
make grpc-fav
make migrate-project
make migrate-users
https://api.thecatapi.com/v1/images/search?limit=10
docker exec -it containerId redis-cli
openssl genrsa -out cert/key_rsa 1024
openssl rsa -in cert/key_rsa -pubout -out cert/key_rsa.pub
Table users {
id String [primary key]
email String
password String
profile String
user_name String
first_name String
last_name String
created_at timestamp
updated_at timestamp
}
Table projects {
// object id
_id String [primary key]
name String
logo_url String
banner_url String
website_url String
crypto_category String
description String
reason String
category String
contact String
fav_count Number
comment_count Number
create_by String
created_at timestamp
updated_at timestamp
}
Table comment {
// _id is equal to projectId
_id String
comments {
_id String
title String
content String
created_by String
created_at timestamp
updated_at timestamp
}[]
created_at timestamp
updated_at timestamp
}
Table favorite {
// _id is equal of userId
_id String
project_id String[]
created_at timestamp
}