- Clone or fork this project on your local.
- Create file
.env
export DB_USERNAME=<username-db>
export DB_PASSWORD=<password-db>
export DB_PORT=<port-db>
export DB_HOST=<host-db>
export DB_NAME=<name-db>
- Run command to call file environment
$ source .env
- Run project
$ go run main.go
____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.7.2
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:8000
- Create new project on your google cloud platform
- Create new bucket on google cloud storage and fill in the existing fields:
- Name bucket
- Location data store
- Class of storage
- Control access to object
- Protect object data
- Setup your bucket for public access
- Access your bucket with public link
https://storage.googleapis.com/bucket_name/
+nama_file.png
- Access your bucket with public link
- Generate access-key for service account with format
.json