Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1 KB

README.md

File metadata and controls

41 lines (28 loc) · 1 KB

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.