# elasticbeanstalk-ts-template

> A TypeScript template for an AWS Elastic Beanstalk application

Latest version **1.0.0** (published 2021-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install elasticbeanstalk-ts-template
pnpm add elasticbeanstalk-ts-template
yarn add elasticbeanstalk-ts-template
bun add elasticbeanstalk-ts-template
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-14 |
| First published | 2021-11-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14.18.1 |
| Dependencies | 1 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dan Mandel |
| Maintainers | danmandel17 |
| Keywords | AWS, Elastic Beanstalk, TypeScript, Express |

## Links

- npm: https://www.npmjs.com/package/elasticbeanstalk-ts-template
- npm.io page: https://npm.io/package/elasticbeanstalk-ts-template

## Dependencies (1)

- [express](https://npm.io/package/express.md) ^4.17.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-14

## README

## Prerequisites
* The [Elastic Beanstalk CLI](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html). I used `brew install awsebcli`.

* A global installation of TypeScript: `npm install -g typescript`.

## Setup
1. Execute `eb init --platform node.js --region us-east-2`. The [eb init](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-init.html) command creates the Elastic Beanstalk application that can be found [here](https://us-east-2.console.aws.amazon.com/elasticbeanstalk/home?region=us-east-2#/applications). By default the application will be named after the folder this command is executed in.

2. Execute the `eb create --sample elasticbeanstalk-ts-template-env -p "Node.js 14 running on 64bit Amazon Linux 2"`. The [eb create](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-create.html) command creates the environment that can be found [here](https://us-east-2.console.aws.amazon.com/elasticbeanstalk/home?region=us-east-2#/environments). It's safe to ignore the warning about not specifying a Node.js version, because it will be specified as part of the deployed artifact in step 4.

3. Add 2 lines to the bottom of `.elasticbeanstalk/config.yml`. The generated zip file's name should be equal to the `name` parameter used in the package.json.

```yml
deploy:
  artifact: dist/elasticbeanstalk-ts-template.zip
```

4. Execute `npm install` then `npm run deploy.` This will compile the `src` folder into `build`, produce a zipped artifact, and deploy it to Elastic Beanstalk.

## Testing
1. Execute `eb open`.

---
_Source: https://npm.io/package/elasticbeanstalk-ts-template · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
