/express-ts-template

Express + TypeScript

Primary LanguageTypeScript

Express + Typescript Template

logo

Table of Contents

Recommended IDE Setup

About this project

This template includes the following packages:

這模板整合了以下套件

  • TypeScript - TypeScript extends JavaScript by adding types.
  • ESLint - Find and fix problems in your JavaScript code
  • Express - Fast, unopinionated, minimalist web framework for Node.js.
  • Axios - Promise based HTTP client for the browser and node.js

Prerequisites

請先安裝好 Node.js 環境

This Demo project is running on Node.js (14.19.3), NPM (6.14.17) while testing.

Clone / Download

  1. Clone this repository to your local machine
  2. Start your development :)
$ git clone https://github.com/andy922200/express-ts-template.git

Related Scripts

1. Enter the project folder

> Open a new terminal window and enter the folder
$ cd <project folder>

2. Install packages via npm

$ npm install

3. For development

$ npm run dev // port:3000

4. Fix the coding style automatically

$ npm run format

5. Build Project

$ npm run build
/* output dir is dist*/

6. Deploy on the server

$ npm run start
/* If your output dir is not 'dist', you should change this script.*/

Author