Skip to content

030/news-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

news-website

Scalable news website on AWS.

Getting started

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

sls deploy --verbose --aws-profile training --region eu-central-1 --stage dev

Testing

Post:

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:

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

About

Scalable news website on AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages