/smlpoints-backend-nodejs-server

smlpoints backend Node.js Server

Primary LanguageTypeScript

smlpoints backend Node.js Server

logo

Table of Contents

Recommended IDE Setup

About this project

The project 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 環境

$ git clone https://github.com/andy922200/smlpoints-backend-nodejs.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

$ pnpm install

3. For development

$ pnpm dev // port:3000

4. Fix the coding style automatically

$ pnpm lint

5. Build Project

$ pnpm 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