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

express-mongo-jwt-boilerplate

Express Mongo JsonWebToken boilerplate
授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 訾晋
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Express Mongo JWT Boilerplate

Installation

  • Install NodeJS, MongoDB
  • Install npm or yarn
  • Rename .env.example to .env
  • Fulfill .env data
  • Start MongoDB
  • Run yarn run dev or npm run dev
  • Check http://localhost:3000/api/status to see it works

With Docker

  • Make sure you have installed Docker and Docker Compose
  • Just run docker-compose up to start the server

Configuration

Name Description Example
NODE_ENV Environment for node js "dev", "prod", "test"
APP Name of the application My cool express app
PORT Port to run the application (if you run in heroku this will setup automatically) 3000
HOSTNAME Host name for running the application http://localhost:3000
APP_SECRET Secret for running app. Use a strong hash in production and make sure to rotate it ddd36434-80fe-4f18-b3b6-e645697f7b84
MONGOURI MongoDB connection URI mongodb://localhost:27017/yourapp
MONGOTESTURI MongoDB connection URI for testing mongodb://localhost:27017/test-app
TRANSPORTER_HOST Mail server host smtp.mymailer.com
TRANSPORTER_PORT Mail server port 2525
TRANSPORTER_USERNAME Mail server username harrypotter
TRANSPORTER_PASSWORD Mail server password alohomora
 相关资料
  • 使用Node.js,Express和Bootstrap3编写的基于Web的MongoDB管理界面。它允许连接多个数据库;查看/添加/删除数据库,集合和文档;预览音频/视频/图像资产;GridFS支持 - 添加/获取/删除难以置信的大文件;在文档中使用BSON数据类型,Mobile / Responsive - Bootstrap以及更多功能。 界面截图:

  • React Application with JWT Authentication Overview This is an example application that serves an ExpressJS JSON api to a React client application. The React application is configured for a basic JWT a

  • Express JWT Permissions Middleware that checks JWT tokens for permissions, recommended to be used in conjunction with express-jwt. Install npm install express-jwt-permissions --save Usage This middlew

  • Vue, Express, MongoDB full-stack JS Boilerplate This is a full stack webapp boilerplate project with VueJS + ExpressJS + MongoDB. It is NOT an out-of-box project.I make it in order to create an up-to-

  • Official blog post can be found at https://medium.com/@nparsons08/building-a-node-js-powered-api-with-express-mongoose-mongodb-19b14fd4b51e.

  • 我在mongo中有一个类似root的数据 chi1: chi2 Chi11 现在我想在模板中显示类别,如下所示: 如果我们可以从父项查询子项。