Giter Site home page Giter Site logo

samplelambdablog's Introduction

Sample Lambda# Blog

Sample serverless blog engine powered by AWS C# Lambda functions.

This repository shows how to build a sample blog engine using AWS C# lambda functions. The repository uses multiple branches that map from simple to advanced implementations.

Getting Started

To begin, make sure the following tools are installed.

  1. Install .NET Core 1.0
  2. Install nodejs
  3. Install Yeoman npm install -g yo generator-aws-lambda-dotnet
  4. Create a IAM user in the AWS console (e.g. lambdasharp)
  5. Create a lambdasharp AWS configuration in ~/.aws/credentials

Now you should be ready to publish

Configuration

By default, this sample blog will create the DynamoDB table as part of the CloudFormation template. You can edit src/SampleLambdaBlog/aws-lambda-tools-defaults.json to adjust defaults for publishing. Please review profile and region

BEWARE by default, the API Gateway created by the CloudFormation stack is public and vulnerable to abuse!

Using the SampleLambdaBlog API

You can find the URI for your SampleLambdaBlog API as follows:

  1. Open the AWS console
  2. Select API Gateway
  3. Select SampleLambdaBlog
  4. Select Dashboard

The URI will be shown at the top of the page. The URIs in the examples below will NOT WORK for you unless you replace the URI!

Get all published blog posts

The following curl command will return an empty list [] unless a blog entry was added.

curl https://SampleLambdaBlog.execute-api.us-east-1.amazonaws.com/Prod/

Publish a blog post

The following curl command will return the GUID of the new blog entry when it succeeds.

curl -X PUT -H "Content-Type: application/json" -d '{"Name":"John","Content":"What John wrote."}' https://SampleLambdaBlog.execute-api.us-east-1.amazonaws.com/Prod/

samplelambdablog's People

Contributors

bjorg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.