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

https://github.com/rulanugrh/triton

Example REST API with Typescript and Mysql ( Express & Typeorm )
https://github.com/rulanugrh/triton

rest-api typescript typescript-learning

Last synced: about 1 month ago
JSON representation

Example REST API with Typescript and Mysql ( Express & Typeorm )

Awesome Lists containing this project

README

        

Triton





## Description
Triton is an example project creating a rest api with express js and typeorm as a relation to mysql. Well actually this is the result of my learning, considering that typescript has almost the same habits as golang :u. But this isn't really neat, maybe I will continue to update it so that the source code feels neat.

Anyway, this project still uses the restful api plan, maybe I'll study tRPC and gRPC, for the database schema there isn't any because I didn't make it :U

## Usage
### 1.1 Usage with Node
Run this command for innstall dependecy
```bash
npm i
```
then running this command for compile file ts
```bash
npm run ts
```
then running this command for running server
```bash
npm run dev
```

### 1.2 Usage with Docker
Run this command to download docker-compose (this command for linux)
```bash
sudo apt install docker-compose -y
```
then running this command
```bash
docker-compose up -d
```