Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gonzaloplaza/typescript-codebuild-demo
Sample TypeScript+Express demo with Jest tests & AWS CodeBuild specs
https://github.com/gonzaloplaza/typescript-codebuild-demo
Last synced: 10 days ago
JSON representation
Sample TypeScript+Express demo with Jest tests & AWS CodeBuild specs
- Host: GitHub
- URL: https://github.com/gonzaloplaza/typescript-codebuild-demo
- Owner: gonzaloplaza
- License: mit
- Created: 2021-02-24T19:13:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T16:16:04.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T21:07:39.925Z (2 months ago)
- Language: TypeScript
- Size: 564 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript CodeBuild Demo
[![made-with-typescript](https://img.shields.io/badge/Made%20with-TypeScript-1f425f.svg)](https://www.typescriptlang.org/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/gonzaloplaza/typescript-codebuild-demo/graphs/commit-activity)Sample TypeScript+Express demo with Jest and AWS CodeBuild specs for testing and ECR image creation.
## Installation
```sh
# Install dependencies
npm install# Start typescript server (ts-node)
npm run start# Build JS
npm run build# Execute tests and generate coverage
npm run test
npm run coverage
```## Build Docker image
```sh
# Generate Docker image
docker build --no-cache -t typescript-codebuild-demo .# Run container in background
docker run --rm -d -p 8080:8080 --name typescript-codebuild-demo typescript-codebuild-demo
```## Access service
You can access local container running on [http://localhost:8080](http://localhost:8080)
```json
{
"success": true,
"message": "Hello World"
}
```## Stop and remove container
```sh
docker stop typescript-codebuild-demo
```