Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/feliux/theblock-blog
Deprecated. Blog service like Twitter built on golang
https://github.com/feliux/theblock-blog
Last synced: 1 day ago
JSON representation
Deprecated. Blog service like Twitter built on golang
- Host: GitHub
- URL: https://github.com/feliux/theblock-blog
- Owner: feliux
- Created: 2024-02-10T17:41:58.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-11T13:59:24.000Z (11 months ago)
- Last Synced: 2024-06-19T23:05:26.681Z (7 months ago)
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Block
**DEPRECATED: infra is down and repo is public**
Blog service like Twitter built on golang.
- AWS Api Gateway to expose endpoints
- Lambda as golang backend
- KMS and SM for storing secrets
- MongoDB as database## Deloy
First change the region where you want to deploy on [main.go](./main.go) file.
**MongoDB**
Create a Mongo server on [cloud.mongodb.com](https://cloud.mongodb.com/).
**Secrets Manager**
Your secret manager must include the following secrets. If deploy with terraform check the [terraform/README.md](./terraform/README.md)
~~~
host:
username:
password:
database:
jwtSign: :
~~~**Terraform**
Just compile running `bash buld.sh`. It generates the `bootstrap` binary and the `terraform/zip/lambda.zip` for uploading on AWS Lambda. Then execute terraform.
```sh
# Build
$ bash build.sh
# Deploy
$ cd terraform
$ terraform init
$ terraform plan -out tfplan
$ terraform apply -auto-approve
$ terraform destroy -auto-approve
```## Tests
Check [apiCalls](./apiCalls.md) for testing endpoints.