s-patompong / xanpool-book-catalogue-express-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Book Catalogue Backend in Express + TypeScript

This is a test project.

Installation

First, copy .env.example file to .env

$ cp .env.example .env

You can update .env file if you want to change the server port. For example, to run server on 9999 port, you can do so:

SERVER_PORT=9999

Once you've finished updating .env file, run these commands:

# Make sure to use the same node version with the repo
$ nvm use

# Install the dependencies
$ npm install

# Boot up the server
$ npm start

Lint

To line the code, run:

$ npm run lint

Format

To let prettify auto format the code, run:

npm run format

Format

To test the code, run:

npm run test

About


Languages

Language:TypeScript 67.9%Language:JavaScript 31.6%Language:Shell 0.5%