Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edumats/cdk-as-framework

A template for building web application from a AWS CDK that acts as a web framework. Authentication, database, compute, API, CDN, storage are all serverless AWS services.
https://github.com/edumats/cdk-as-framework

Last synced: 5 days ago
JSON representation

A template for building web application from a AWS CDK that acts as a web framework. Authentication, database, compute, API, CDN, storage are all serverless AWS services.

Awesome Lists containing this project

README

        

REST API backed by Amazon DynamoDB
==================================

This template provides a REST API that's backed by an Amazon DynamoDB table.
This application is deployed using the AWS CDK.

For more information, see the `Deploying with the AWS CDK
`__ tutorial.

Quickstart
----------

First, you'll need to install the AWS CDK if you haven't already.
The CDK requires Node.js and npm to run.
See the `Getting started with the AWS CDK
`__ for
more details.

::

$ npm install -g aws-cdk

Next you'll need to install the requirements for the project.

::

$ pip install -r requirements.txt

There's also separate requirements files in the ``infrastructure``
and ``runtime`` directories if you'd prefer to have separate virtual
environments for your CDK and Chalice app.

To deploy the application, ``cd`` to the ``infrastructure`` directory.
If this is you're first time using the CDK you'll need to bootstrap
your environment.

::

$ cdk bootstrap

Then you can deploy your application using the CDK.

::

$ cdk deploy

Project layout
--------------

This project template combines a CDK application and a Chalice application.
These correspond to the ``infrastructure`` and ``runtime`` directory
respectively. To run any CDK CLI commands, ensure you're in the
``infrastructure`` directory, and to run any Chalice CLI commands ensure
you're in the ``runtime`` directory.