Basics

Challenges

Classes

Cookies

Debugging

Events

External Files

Flow Control

Forms

Functions

Html Elements

Installation

Interfaces

Keywords

Modules

Namespaces

Operators

Reference Files

String

Types

TypeScript - http-server

http-server

http-server is a little, light weight npm package which lets you server files as a web site and not as file-based. This comes in handy when you want to use ajax or load files in js/ts which these scripts cannot do when server "file-based".

To install, type npm install http-server -g at a console.

Once you do this, you should be able to run your project from it's root folder by simply typing http-server at a command prompt.

Helpful links

  • https://www.npmjs.com/package/http-server
  • https://www.youtube.com/watch?v=3L6cFd8obfk