当前位置: 首页 > 软件库 > Web应用开发 > >

inversify-express-example

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 岳玉书
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

inversify-express-example

The official express + inversify + inversify-express-utils example

Use examples

First of all run npm install

You can start a example by using ts-node

$ npm install -g ts-node
$ ts-node <example>/bootstrap

This will start up the server and you can use the example

If you want to run the unit tests, simply use npm test <example>/**/*.spec.ts

To run all tests simply run npm run test:all

Currently available examples

Name Description
Basic A really basic example. Nothing too fancy.
MongoDB Similar to the basic example. This time with MongoDB and some middleware. For detailed information see the readme in the folder.
BindingDecorators Similar to the basic example. This time with inversify-binding-decorators.
MiddlewareInjection A small example that shows how to inject middleware into controllers.
PostgresAndTypeORM A small example that shows how to integrate inversify-express-utils with TypeORM.
  • Description You probably know that Alex is a very serious mathematician and he likes to solve serious problems. This is another problem from Alex. You are given three nonnegative integers  a,  b,  c.

  • lib/express.js //require('express')本身就是一个函数 exports = module.exports = createApplication; function createApplication() { //express实例本身就是一个处理函数,所以可以传递给createHttpServer方法 var app = function(req, r

 相关资料
  • inversify-express-utils Some utilities for the development of express applications with Inversify. Installation You can install inversify-express-utils using npm: npm install inversify inversify-expre

  • 快递概述 Express是一个最小且灵活的Node.js Web应用程序框架,它提供了一组强大的功能来开发Web和移动应用程序。 它有助于基于节点的Web应用程序的快速开发。 以下是Express框架的一些核心功能 - 允许设置中间件以响应HTTP请求。 定义路由表,该表用于基于HTTP方法和URL执行不同的操作。 允许基于将参数传递给模板来动态呈现HTML页面。 安装Express 首先,使用N

  • art-template for express. Install npm install --save art-template npm install --save express-art-template Example var express = require('express'); var app = express(); app.engine('art', require('exp

  • Serverless Express ⎯⎯⎯ This Serverless Framework Component enables you to take existing Express.js apps and deploy them onto cheap, auto-scaling, serverless infrastructure on AWS (specifically AWS HTT

  • Express, GraphQL example How to run the project Install dependencies: yarn# or using npmnpm install Create src/config.ts or rename src/config.example.js and update file with your credentials: export d

  • 囊括了perl程序员必需的编写和调试的所有工具,无论是对新手还是对老手都很合适