services:nodeserve
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:nodeserve [2024/08/13 09:53] – [Helpful Hints] jas | services:nodeserve [2024/08/13 11:48] (current) – [Nodeserve] jas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Nodeserve | + | ====== Nodeserve ====== |
The Nodeserve system is designed to streamline the deployment and management of Node.js applications for EECS users. This platform allows users to easily host their Node.js apps on the web, providing a seamless interface for starting, and stopping their applications. By automating much of the setup and configuration, | The Nodeserve system is designed to streamline the deployment and management of Node.js applications for EECS users. This platform allows users to easily host their Node.js apps on the web, providing a seamless interface for starting, and stopping their applications. By automating much of the setup and configuration, | ||
Line 13: | Line 13: | ||
% mkdir ~/ | % mkdir ~/ | ||
- | 3. | + | 3. |
- | 4. | + | % cd ~/ |
+ | % npm init -y | ||
+ | |||
+ | 4. | ||
- | 5. Allocate a port number for your app using the **nodeserve** command. | + | 5. Test your app on any EECS machine. |
+ | |||
+ | 6. Allocate a port number for your app using the **nodeserve** command. | ||
Each Node.js application must be allocated a unique port number to communicate with the web server. Ports act as channels for data to flow in and out of your app. We allocate a specific port for your app to ensure it runs smoothly without conflicts with other apps. This avoids issues that can arise from choosing an arbitrary port, which might already be in use by another service or application. | Each Node.js application must be allocated a unique port number to communicate with the web server. Ports act as channels for data to flow in and out of your app. We allocate a specific port for your app to ensure it runs smoothly without conflicts with other apps. This avoids issues that can arise from choosing an arbitrary port, which might already be in use by another service or application. | ||
Line 59: | Line 64: | ||
</ | </ | ||
- | 6. Visit your app on the web by visiting: | + | 7. Visit your app on the web by visiting: |
- | The web server will look up the port number allocated to your app, and set the port number in the PORT environment variable. | + | The web server will look up the port number allocated to your app, and set the port number in the PORT environment variable. |
A few additional notes: | A few additional notes: |
services/nodeserve.1723557239.txt.gz · Last modified: 2024/08/13 09:53 by jas