npm
or yarn
.env.example
to .env
.env
datayarn run dev
or npm run dev
http://localhost:3000/api/status
to see it worksDocker
and Docker Compose
docker-compose up
to start the serverName | 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 现在我想在模板中显示类别,如下所示: 如果我们可以从父项查询子项。