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:46] – 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 for your app using the **nodeserve** command. | + | 5. Test your app on any EECS machine. |
+ | |||
+ | 6. Allocate a port number | ||
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 52: | Line 57: | ||
</ | </ | ||
- | You can also delete a port allocation for a web: | + | You can also delete a port allocation for an app: |
< | < | ||
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: | ||
Line 87: | Line 92: | ||
4. Sometimes, you may need to terminate your application before the period of inactivity expires. | 4. Sometimes, you may need to terminate your application before the period of inactivity expires. | ||
- | 5. Since your application is running on the server, you don't have direct access to view the console, | + | 5. Since your application is running on a server |
< | < |
services/nodeserve.1723556761.txt.gz · Last modified: 2024/08/13 09:46 by jas