Skip to content
项目

关于

Clean Architecture for node.js projects (Typescript + Express + TypeORM + Typedi)

数据与分析

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

try! resty.js, my newest node.js + express based framework. with controllers and middlewares built in.

nodejs-boilerplate

Clean Architecture for node.js projects

Folder Structure

src
│   main.ts         # Application entry point
└───api             # Express route controllers for all the endpoints of the app
└───config          # Environment variables and configurations
└───loaders         # Split the startup process into modules
└───models          # TypeORM Entities
└───services        # All the business logic is here
└───types           # Type declaration files (d.ts) for Typescript

Getting Started

Step 1: Set up the Development Environment

You need to set up your development environment before you can do anything.

Install Node.js and NPM

Install

  • Install all dependencies with yarn install

Running in dev mode

  • Run yarn start
  • The server address will be displayed to you as http://0.0.0.0:3000

Building the project and run it

  • Run yarn build to generated all JavaScript files from the TypeScript sources.
  • the builded app located in dist.

Inspired by Bulletproof Node.js architecture with modificatins

探索相关项目

加载中…