dlwodud1016 / lolp.api

Look for LOL partner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

riotgames API를 이용하여 나의 베스트 소환사 찾기

Installation

$ npm install

## MariaDB 도커 볼륨생성
$ docker volume create lolp-mariadb-vol

## MariaDB 도커 실행
$ docker run -p 127.0.0.1:3306:3306 --name lolp-mariadb -v lolp-mariadb-vol:/var/lib/mysql -e MARIADB_ROOT_PASSWORD=dev -d mariadb:tag

## ./doc/database/mariadb-ddl.sql 적용

Environment

  • Riot API 발급 및 환경변수 등륵(Development API key 매일(유효기간 1day))
    • Riot_Token: RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Api Doc

  1. Open Swagger.json

TypeOrm Entity

  • typeorm-model-generator -h localhost -d lolp -p 3306 -u root -x dev -e mariadb

About

Look for LOL partner


Languages

Language:TypeScript 97.0%Language:JavaScript 2.6%Language:Shell 0.4%