MIT License. This is something I've used in production before with success that I found useful for quickly bootstrapping RESTful APIs. You can fork and clone and take this apart without giving me any credit for anything. If you like it, you can star the repo
Feel free to make an issue or PR if you want to suggest ideas / fixes.
This configuration is a backend RESTful API boilerplate with the following pieces:
You will need to first download and install Docker Desktop or Linux equivalent.
docker-compose up
to start three containers:
http://localhost:5000
if you have Docker for Windows or Mac. Use http://localhost
without specifying the port to hit the NGINX proxy. On Linux, you may need to hit the IP Address of the docker-machine rather than localhost
(port rules are the same.)Currently, tests are run outside of the Docker container (unfortunately for now). The tests use an in-memory version of MongoDB. You should be able to run npm install
followed by npm test
to run everything (assuming you have the LTS version of Node installed on your machine).
index.js
which simply exports the contents of all the files in those folders. This is to make importing things around the app slightly easier, since you can just require
the folder name and destructure the functions you are looking for. Check out this part of the Node.js docs for more info.__tests__
npm test
which in turn uses Jest./app
handlers
are Express.js route handlers that have request
, response
, and next
parameters.helpers
are raw JS "classes" and utility functions for use across the appmodels
are Mongoose schema definitions and associated modelsrouters
are RESTful route declarations using express.Router module that utilize the functions in handlers
schemas
are JSONSchema validation schemas for creating or updating a Thing. Pro-tip: use JSONSchema.net to generate schemas based on examples for you.app.js
is what builds and configures the express appconfig.js
is the app-specific config that you will want to customize for your appindex.js
is the entrypoint that actually starts the Express server./config
docker vue Venomy my mnemonic for vue-express-node-mysql. After building several vuejs projects, I wanted a way to scaffold SPAs faster. I built this boilerplate for deployment of my apps to docker fa
1.1 创建exporter $ docker run -d -p 9090:9090 \ -v /data/prometheus/data:/prometheus \ -v /data/prometheus:/etc/prometheus \ --name pro prom/prometheus 暴漏9090 端口号 供prometheus 连接 1.2 创建创建配置prometheus.y
使用expresss创建后台框架 npm install express --save npm install -g express-generator express my-backed -----配置外网访问----- 项目目录/bin/www/文件: server.listen(port); 改为: server.listen(port, '0.0.0.0'); 将代码放入g
目标: 用 Docker 镜像的方式搭建 Node Express 应用 本项目代码:node-express-docker-sample Demo :http://yeting-front-node-express-docker-sample.daoapp.io/ Node Express 应用搭建 首先,借助 Yeomen Express generator 生成一个 Node Express
RESTful API Node Server Boilerplate A boilerplate/starter project for quickly building RESTful APIs using Node.js, Express, and Mongoose. By running a single command, you will get a production-ready N
Node.jsを使ってアプリケーションを構築しよう 目次 アプリケーションの構造を理解しよう Node.jsについて知ろう Node.jsを使ってみよう Node.jsとExpressの基本 MySQLを使ってデータベースを構築しよう Node.jsとデータベースを接続しよう Node.jsでデータベースからデータを取得して表示させてみよう Node.jsで詳細ページを作ってみよう Node.js
Node.js Express & MongoDB: CRUD Rest APIs For more detail, please visit: Node.js, Express & MongoDb: Build a CRUD Rest Api example Server side Pagination in Node.js with MongoDB and Mongoose Security:
Node Express Mongoose A boilerplate application for building web apps using express, mongoose and passport. Read the wiki to understand how the application is structured. Usage git clone https://githu
node-weixin-express是一个基于nodejs为基础,以expressjs作为首选http服务器框架的微信公共账号服务器。 他旨在降低开发微信公共账号时的门槛,节约开发时间。 几个主要目标: 可以直接通过一个命令运行微信公共账号服务(已经完成) 实现基本的微信功能: 验证服务器(已经完成) OAuth 验证API(已经完成) 微信支付API(已经完成) 消息接口API(等待完成) 可