Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartmonkey/create-serverless-express-ts-service
Template of a simple serverless typescript api service with express
https://github.com/thesmartmonkey/create-serverless-express-ts-service
Last synced: 19 days ago
JSON representation
Template of a simple serverless typescript api service with express
- Host: GitHub
- URL: https://github.com/thesmartmonkey/create-serverless-express-ts-service
- Owner: TheSmartMonkey
- License: mit
- Created: 2022-11-12T00:50:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T15:20:17.000Z (9 months ago)
- Last Synced: 2024-11-05T13:13:47.530Z (2 months ago)
- Language: TypeScript
- Size: 1.69 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# create-serverless-express-ts-service
Template of a simple serverless typescript api service with express
## Installation
```bash
npx degit https://github.com/TheSmartMonkey/create-serverless-express-ts-service serverless-ts-service
```**Changes to be done**
1. package.json config name
1. serverless.ts service name
1. Change the region in `serverless.ts` provider/region (current region: Paris)
## Getting started
1. Install serverless framework : [serverless framework Get Started](https://www.serverless.com/framework/docs/getting-started)
1. Setup your aws credentials : [aws config](https://www.serverless.com/framework/docs/providers/aws/guide/credentials)
Create a cloud formation stack on aws : `npm run deploy`
Remove a cloud formation stack on aws : `npm run undeploy`
## Create a new route
1. Add your route in src/routes.ts
1. Create a new folder in src/api from the hello template
1. You can create your routes in src/api//routes.ts