This is a backend API server of Casty project written in go!
You can find API Documentations on Postman
- Golang
(1.15)
Install Golang! - gRPC.server This project needs to connect to Casty gRPC server! More info
$ docker run -p 9002:9002 castyapp/api:latest
version: '3'
services:
api:
image: castyapp/api:latest
ports:
- 9002:9002
args: ['--config-file', '/config/config.hcl']
volumes:
- $PWD/config.hcl:/config/config.hcl
$ git clone https://github.com/castyapp/api.server.git
There is a example.config.hcl
file that you should make a copy of, and call it config.hcl
in your work directory.
$ cp example.config.hcl config.hcl
You can find more information about how to run grpc server is available here [https://github.com/castyapp/grpc.server#readme]
grpc {
host = "localhost"
port = 55283
}
You can configure the s3 bucket with these configurations This works with minio too
s3 {
endpoint = "127.0.0.1:9000"
access_key = "secret-access-key"
secret_key = "secret-key"
use_https = true
insecure_skip_verify = true
}
recaptcha.secret
is a secret key that you get on hcaptcha admin console!
- for more information about hcaptcha click here
recaptcha.type
is only available for hcaptcha, google will add soon!
recaptcha {
enabled = false
type = "hcaptcha"
secret = "hcaptcha-secret-token"
}
You can simply run the project with following command
$ go run server.go
or if you're considering building the project
$ go build -o server .
$ docker build . --tag=casty.api
$ docker run -dp --restart=always 9002:9002 casty.api
Thank you for considering contributing to this project!
Casty is an open-source software licensed under the MIT license.