Skip to content

A Typescript microservice starter project deployed in AWS.

Notifications You must be signed in to change notification settings

czhealy/ts-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-microservice

A Typescript microservice starter project deployed in AWS.

Prerequisits

AWS CLI

SAM CLI

NodeJS

NVM

Docker

Unit Test

cd code
npm install
npm run test

Run locally

sam local start-api

Deploy

Configure AWS Key and secret on your machine or use aws sso cli instructions

Then run

sam build -t infrastructure/main.yml
sam deploy

The stack output has your deployed target url. alt text

So, this GET request...

https://ldlxp3k75a.execute-api.us-east-2.amazonaws.com/v0/things

Should return

[{"name":"ThingOne","status":"New","code":"fake","id":"1"}]
  • If you don't want to confirm the changeset, set "confirm_changeset" to false
  • Remember to add the Cloudwatch logging role to api gateway, RestApiStage will error with "Logs role ARN must be set in account setting to enable logging" if you forgot.

About

A Typescript microservice starter project deployed in AWS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published