UncleYee / koa-typescript-example

Practice project using Koa and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

koa-typescript-example

Practice project using Koa and TypeScript

Setup

  # clone repository
  $ git clone git@github.com:UncleYee/koa-typescript-example.git
  # change current directory
  $ cd koa-typescript-example
  # install dependencies
  $ npm i
  # run project
  $ npm run start
  # run project with pm2
  $ npm run start:pm2
  # run project in production environment with pm2
  $ npm run start:prod:pm2
  # delpoy project
  $ npm run deploy

Run In Server

  # install pm2
  $ npm install pm2 -g
  # install typescript in pm2
  $ pm2 install typescript
  # to code folder
  $ cd /path/to/production/folder
  # install dependencies
  $ npm i
  # run
  $ npm run start:prod:pm2

License

MIT

About

Practice project using Koa and TypeScript

License:MIT License


Languages

Language:TypeScript 98.0%Language:Shell 2.0%