Giter Site home page Giter Site logo

slaveofcode / express-ts-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 996 KB

Simple ExpressJS with Typescript Skeleton/Boilerplate using overnightjs decorator

TypeScript 77.05% JavaScript 5.57% Perl 9.89% Perl 6 5.57% Shell 1.91%
typescript boilerplate skeleton expressjs overnightjs

express-ts-boilerplate's Introduction

Express Ts Boilerplate

This is a simple Typescript Skeleton/Boilerplate project to help you get started with Express in a few minutes.

Quick Start

Start Dev!

Simply clone this repository and running npm i to get all dependencies installed. After completed run command below to run the development server.

npm run dev

Build

Get ready for production? run command below to transpile targeting commonjs script.

npm run build

Start the transpiled script

npm start

Lint via tslint

npm run lint

Uses OvernightJs Decorator

This project was setup using OvernightJS typescript decorator to help you managing the controllers & the express behaviors. Take a look into src/controllers/UserController.ts to get you inspired!.

Controllers

As mentioned before, you can see the example of controller on src/controllers/UserController.ts. It has several api endpoint examples also with error exception.

Middlewares

Middlewares are placed into src/middlewares directory, everything about middleware should be dropped here.

Exceptions

This project already supplied with some basic Exception class, see src/exceptions for the details. Also take a look into implementation on controllers/UserController.ts and middlewares/error*.ts for more detail usage.

Interfaces

Middlewares are placed into src/interfaces directory, everything about interface should be dropped here.

License

This project is licensed under the MIT License

express-ts-boilerplate's People

Contributors

slaveofcode avatar zeandcode avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.