Giter VIP home page Giter VIP logo

create-cdk-app's Introduction

create-cdk-app

Create CDK apps from templates.

View templates here.

Usage

NPM

$ npx create-cdk-app <options> <project-dir>

Yarn

$ yarn create cdk-app <options> <project-dir>

If you choose a default template, you will be prompted to choose a language. This is then passed to a child-process that runs cdk init. This requires aws-cdk to be installed and available in the context of the shell.

A template from templates

$ yarn create cdk-app -t default my-new-app

This will scaffold the default template into the my-new-app directory.

Authentication

It is highly recommended that you set the following to environment variables:

GITHUB_USERNAME=<your username>
GITHUB_TOKEN=<personal access|oauth token>

These will be pulled in and used for all github-related requests.

Github will rate-limit you to 5000 calls per hour if you're not using authentication. This limit is easily reached if you use a lot of other tools that are making these types of requests, or if you share an internet connection with many other people interacting with github.

Using authentication also comes with the added benefit of being able to use private repos as template sources.

Adding a template

Please review the template contributing documentation.

Contributing

Please review the contributing documentation.

create-cdk-app's People

Contributors

dependabot[bot] avatar wulfmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

create-cdk-app's Issues

feat(resolver): Add a resolver for the cdk-examples repo

Some work was done initially to support templates found in the cdk examples repo, but it proved to be more complex than originally thought.

Some known issues:

  • templates are nested under [language]. We'd need to have the user select their language.
  • even more than [language], other groupings exist like: python ecs. We would need to recursively map the directories and gather only templates with a cdk.json. This would also make the current downloadAndExtract implementation pretty complex.

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.