snaquaye / express-typescript-starter

An Express.js project implemented using Typescript with strongly typed objects:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript and Express.js

An Express.js project implemented using Typescript with strongly typed objects:

Installation

Clone the repository

npm install 
typings install
node index.js

Browse to http://localhost:3000

Wow, it works!

Start in watch mode

npm run nodemon

Folder structure

.
├── src                    # Main project files
│   ├── index.ts           # Required from ../index.js with ts-node
│   ├── public             # Assets folder
│   ├── controllers        # Controller files
│   ├── views              # Jade files
│   ├── routes             # Routes folder
│   ├── config             # Configuration folder
│   ├───├── express.ts     # Express configuration
│   ├───├── config.ts      # Application configuration in config.js (port etc)
index.js                   # Requires ./src with ts-node module

License

MIT - Do with as you like.

About

An Express.js project implemented using Typescript with strongly typed objects:


Languages

Language:TypeScript 85.8%Language:HTML 9.3%Language:CSS 3.2%Language:JavaScript 1.7%