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

https://github.com/bogdaaamn/deta-typescript-express-starter

Starter template for a Deta project using Node, Express and Typescript.
https://github.com/bogdaaamn/deta-typescript-express-starter

deta express nodejs typescript

Last synced: 3 months ago
JSON representation

Starter template for a Deta project using Node, Express and Typescript.

Awesome Lists containing this project

README

          

# Deta Typescript Express Starer

This is a starter template for a Deta project using Node, Express and Typescript.

## Uses

- Node 14.x (as Deta Micros use Node 14.x)
- Express 4.18.1
- Typescript 4.8.3

## Structure

- `src/`: the typescript source files
- `dist/`: the compiled js files
- `index.js`: imports the compiled `index.js` and exports the app for Deta

## Development

Install dependencies.

```
yarn
```

Run `ts-node src/index.ts` and watch all the typescript files inside `src/`.

```
yarn dev
```

## Deployment

Compile the source files. Deploy `index.js` pointing at `dist/index.js` and the other compiled files in `dist/`

```
yarn deploy
```