https://github.com/030/news-website
Scalable news website on AWS
https://github.com/030/news-website
Last synced: 4 months ago
JSON representation
Scalable news website on AWS
- Host: GitHub
- URL: https://github.com/030/news-website
- Owner: 030
- Created: 2019-09-05T10:30:38.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T21:33:35.000Z (about 4 years ago)
- Last Synced: 2025-09-09T13:51:45.701Z (10 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# news-website
Scalable news website on AWS.
## Getting started
```bash
aws s3 mb s3://testi324332524523432 --profile=training --region=eu-central-1
zip bla.zip -r cmd go.mod go.sum buildspec.yml
aws s3 cp bla.zip s3://testi324332524523432/bla.zip --profile=training --region=eu-central-1
```
## Deploy
```bash
sls deploy --verbose --aws-profile training --region eu-central-1 --stage dev
```
## Testing
Post:
```bash
curl --request POST \
--url https://f2u5ilc7sj.execute-api.eu-central-1.amazonaws.com/dev/newsitem \
--header 'Content-Type: application/json' \
--data '{
"Title": "Hello",
"Description": "World"
}'
```
Get:
```bash
curl --request GET \
--url https://f2u5ilc7sj.execute-api.eu-central-1.amazonaws.com/dev/news
```
## Cleanup
Deletion of the CloudFormation stack does not seem to remove the DynamoDB.
Remove it manually to save costs.
## Sources
*