Giter Site home page Giter Site logo

mengxiangrui / serverless-typescript-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrea-lascola/serverless-typescript-template

0.0 1.0 0.0 77 KB

Serverless project template, includes boilerplate for: unit test, tslint, inversifyjs, coverage

TypeScript 86.40% JavaScript 13.60%

serverless-typescript-template's Introduction

serverless-typescript-template

This project is a serverless template that allow you to start a simple http api with these features included:

  • serverless offline cli and plugin
  • inversion of control(with inversify)
  • typescript transpilation (webpack + watcher)
  • unit test with mocha/chai/nyc(for test coverage)
  • tslint

Basicly i didn't want to redo the setup(test/tslint etc..) every time i build a new service so this template should fasten the setup a bit.

How to

just:

$ serverless create --template-url https://github.com/andrea-lascola/serverless-typescript-template --path myService

$ cd myService && npm i

after that you can:

$ npm start // start the service with hot reload -> curl http://localhost:3000/test

$ npm test // run unittests with mocha/chai

$ npm run coverage && open coverage/index.html // open coverage report

TODO

  • add dependency for logger / performance

serverless-typescript-template's People

Contributors

andrea-lascola avatar

Watchers

James Cloos 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.