GithubHelp home page GithubHelp logo

smithy-generator-typescript-sample's Introduction

Smithy Server Generator for TypeScript Example Service

Overview

This repository is divided into three projects:

  • model contains the Smithy model for the service.
  • typescript-client contains the generated TypeScript client generated from model.
  • server contains the service, written in TypeScript, for model.

Building

Prerequisites

Before beginning:

Getting started

  1. After the first checkout, you will need to kick off the initial code generation and build by running:
    ./gradlew build && yarn install && yarn build
    After this initial build, yarn build in the root of the project will regenerate the client and server and recompile all of the code.
  2. To deploy the service, switch to the server directory and run cdk deploy. When complete, the CDK will print out the endpoint URL for your newly deployed service.

    Note: this step will create resources in your AWS account that may incur charges.

  3. To test your service, switch to the typescript-client directory and use yarn str-length to call the Length operation. For example, given an output from the CDK of https://somerandomstring.execute-api.us-west-2.amazonaws.com/prod/,
    yarn str-length https://somerandomstring.execute-api.us-west-2.amazonaws.com/prod/ foobar
    should print out 6.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

smithy-generator-typescript-sample's People

Contributors

kastork avatar

Watchers

 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.