【文件属性】:
文件名称:mern-server:MERN样板服务器
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-16 00:10:27
JavaScript
MERN服务器
对于那些希望将分离到客户端和服务器中的用户,此存储库适用于服务器。 该项目应与一起使用。
要求
作业系统:MacOS或Linux
(我建议与安装)
(安装MongoDB)
快速开始
设置
npm install
# Install MongoDB
brew tap mongodb/brew
brew install mongodb-community
启动数据库
brew services start mongodb-community
用于开发和生产
启动服务器
npm start
其他命令
npm test
npm run lint
npm run lint:fix
npm run test:verbose
npm run test:watch
设定说明
注意:这现在是一个github模板项目。 这使得将项目内容复制到新的回购中非常简单。
要设置您自己的项目,
【文件预览】:
mern-server-master
----server()
--------index.js(607B)
--------passport()
--------test()
--------database()
--------routes()
--------environment.js(387B)
----config()
--------jest.config.js(443B)
--------jest.setup.js(19B)
----package.json(1KB)
----LICENSE(1KB)
----.eslintrc.js(1KB)
----.gitignore(195B)
----README.md(2KB)
----scripts()
--------test-coverage.sh(56B)
--------test.sh(45B)
--------test-watch.sh(53B)
--------test-verbose.sh(55B)