简体   繁体   English

使用MongoDB数据库部署Node.js API

[英]Deploying Node.js API with MongoDB database

I've been developing a game using Unity3D as part of my master's degree thesis. 我一直在使用Unity3D作为我的硕士学位论文的一部分来开发游戏。 The game communicates with a Node.js RestAPI, which handles the requests and the data in a MongoDB database. 游戏与Node.js RestAPI通信,后者处理请求和MongoDB数据库中的数据。

During development, I've been using my pc as a localhost, however now I'm ready for testing which means I need to deploy the Node.js RestAPI and MongoDB to a server. 在开发过程中,我一直将PC用作本地主机,但是现在可以进行测试了,这意味着我需要将Node.js RestAPI和MongoDB部署到服务器上。

In order to get the machine, I've been asked to write a proper request highlighting the technologies/technical requirements I need. 为了得到这台机器,我被要求写一个适当的要求,强调我需要的技术/技术要求。 Having never done this before, I'm currently having trouble figuring out what I need. 以前从未做过,但是我现在很难确定我需要什么。

I know I need the machine to have Node.js Express and MongoDB installed or, at least, I need the permissions to install them. 我知道我需要在机器上安装Node.js Express和MongoDB,或者至少需要安装它们的权限。 However, in terms of the machine's OS, I have no idea. 但是,关于机器的操作系统,我不知道。

Which OS is the best for Node.js+MongoDB deployment? 哪种操作系统最适合Node.js + MongoDB部署?

As I have never done this before, am I missing any requirements? 由于我以前从未做过此事,因此我是否缺少任何要求?

Any help is appreciated, thanks in advance. 任何帮助表示赞赏,在此先感谢。

There are tons of option to deploy your application RESTful API. 部署应用程序RESTful API有很多选择。 I don't have much idea about the OS but here are tons of platform listed on Node.js official GitHub repository. 我对操作系统没有太多了解,但是在Node.js官方GitHub存储库中列出了很多平台。 Visit https://github.com/nodejs/node-v0.x-archive/wiki/Node-Hosting 访问https://github.com/nodejs/node-v0.x-archive/wiki/Node-Hosting

https://itsfoss.com/nodeos-operating-system/ https://node-os.com/ https://itsfoss.com/nodeos-operating-system/ https://node-os.com/

Ubuntu 18.04.1 LTS (Bionic Beaver) is the best OS for Node.js + MongoDB deployment and NodeOS Ubuntu 18.04.1 LTS(Bionic Beaver)是适用于Node.js + MongoDB部署和NodeOS的最佳操作系统

NodeOS, the operating system based on Node.js, is now heading towards its version 1.0 following the release of its first Release Candidate last year. 在去年发布第一个Release Candidate之后,基于Node.js的NodeOS操作系统正朝着1.0版本发展。

If this is the first time you're hearing about it, NodeOS is the first ever operating system powered by Node.js & npm and built on top of the Linux Kernel. 如果这是您第一次听说它,那么NodeOS是有史以来第一个由Node.js和npm支持的操作系统,它是基于Linux内核构建的。 Jacob Groundwater introduced this project in mid-2013. Jacob Groundwater于2013年中推出了该项目。 The primary technologies used in building the system are: 构建系统使用的主要技术是:

Linux Kernel: The entire OS is built on the Linux Kernel. Linux内核:整个操作系统都基于Linux内核构建。 Node.js runtime: Node is used as the primary runtime. Node.js运行时:Node用作主要运行时。 npm Packages: npm is used for package management. npm软件包:npm用于软件包管理。 NodeOS source is hosted on Github Repository. NodeOS源代码托管在Github存储库中。 So, anybody interested can easily contribute and report bugs. 因此,任何感兴趣的人都可以轻松贡献并报告错误。 Users can build from source or use the pre-built images available. 用户可以从源构建或使用可用的预构建图像。 The build process and quick start guide can be found at project repository. 可以在项目存储库中找到构建过程和快速入门指南。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM