Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/carrington-115/gcloudapp-translate-backend

Translation backend of an application built with nodejs, express, and google cloud translation API
https://github.com/carrington-115/gcloudapp-translate-backend

expressjs google-cloud google-cloud-translation-api nodejs typescript

Last synced: about 17 hours ago
JSON representation

Translation backend of an application built with nodejs, express, and google cloud translation API

Awesome Lists containing this project

README

        

# Test backend application with Google cloud translation api

## How to install typescript to the project

- Run the following code to install typescript compiling and the types for the node and express

```shell
npm install --save-dev typescript ts-node @types/node @types/express

```

- Install the tsconfig.json file with the code below and configure ti

```shell
npx tsc --init
```

- To run the typescript code

```shell
npx ts-node src/server.ts

// with nodemon add the package.json dev script
"dev": "nodemon --watch src/**/*.ts --exec ts-node src/server.ts"

```