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 )
- Host: GitHub
- URL: https://github.com/rulanugrh/triton
- Owner: rulanugrh
- Created: 2023-08-15T13:32:03.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T01:12:37.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T21:00:53.187Z (3 months ago)
- Topics: rest-api, typescript, typescript-learning
- Language: TypeScript
- Homepage:
- Size: 345 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```![]()