You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Documentation/docs/Introduction.md
+2-8
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Table of Contents:
16
16
- Installing necessary dependencies before proceeding with the installation. [[View]](/#before-you-start-the-installation)
17
17
- Cloning the Github repository that contains the Lovelace source code. [[View]](/installation)
18
18
- Knowing the functionality of the files and directories found within the cloned repository. [[View]](/installation#knowing-a-little-more-about-the-contents-of-the-cloned-repository)
19
-
- Running the backend server on the network and in production mode with the help of the process manager for NodeJS PM2. [[View]](/mounting-server-in-the-network/)
19
+
- Running the backend server on the network. [[View]](/mounting-server-in-the-network/)
20
20
- Knowing the environment variables that the Lovelace Backend has. [[View]](/mounting-server-in-the-network/#what-about-environment-variables)
21
21
- Mounting the Lovelace Frotend built with Vite + React on the network. [[View]](/mounting-webapp-in-the-network/)
22
22
- Knowing and modifying the environment variables that the Vite + React application has (Frontend). [[View]](/mounting-webapp-in-the-network/#modifying-environment-variables)
@@ -36,7 +36,7 @@ Table of Contents:
36
36
- Video-based example of the use of the web application on mobile devices. [[View]](/Web-App-Usage#using-the-web-application-on-mobile)
37
37
38
38
## Before you start the installation
39
-
Installing Lovelace on your computer or server is relatively simple, you shouldn't have any major complications in the process; however, before you start cloning the repository, make sure you have at least `NodeJS v18.0.0`, `Python v3.10` and `PM2 with SocketIO Deps [npm install -g @socket.io/pm2 pm2]`.
39
+
Installing Lovelace on your computer or server is relatively simple, you shouldn't have any major complications in the process; however, before you start cloning the repository, make sure you have at least `NodeJS v18.0.0` and `Python v3.10`.
40
40
41
41
Consider that, in case you do not have the required NodeJS version installed on your system, you can use the version manager [`NVM (Node Version Manager)`](https://github.com/nvm-sh/nvm#installing-and-updating).
Next, we will install the necessary dependencies to be able to use PM2 on SocketIO and in the same way we will install the PM2 process manager, consider that this installation has the `-g` parameter, that is, it will be done globally. The mentioned packages that you will install are necessary, you will not be able to run the server in production if you do not have them.
73
-
74
-
```bash
75
-
npm install -g @socket.io/pm2 pm2
76
-
```
77
-
78
72
Now, assuming you have the aforementioned dependencies installed on your system, we can proceed to the next step...
Copy file name to clipboardexpand all lines: Documentation/docs/Mounting-Server.md
+2-6
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,10 @@ If you have done everything correctly, the server should already be running on y
21
21
22
22
## Other ways to raise the server...
23
23
24
-
Consider that, when setting up the server in production, `PM2` is used, which is nothing more than a `Process Manager for NodeJS`. It is used in Lovelace due to its built-in load balancer, as well as allowing you to always keep applications active and load them without any downtime, among other advantages in terms of performance. Next, you will have a table with all the scripts you can run using `npm run <script_name>`.
25
-
26
24
| Script (`npm run <script_name>`) | Description |
27
25
| ------ | ------ |
28
-
| start | Start the server running normally, you may prefer to use this mode in case you want to make development level changes within the source code regarding the server. |
29
-
| production | As previously seen, this mode allows you to mount the server on the network in production mode. |
30
-
| stop | It allows turning off the server that was started in production, since, unlike `npm run start`, when executing `npm run production` the process goes to the background, that is, you cannot give a `CTRL + C` to be able to end the execution, otherwise you should use `npm run stop`. |
31
-
| restart | Following the same line of the previous script of the "`stop`" table, with `npm run restart` you allow to restart the server that is being executed in production mode. |
26
+
| start |The normal execution of the server begins, you can consider this option in case you want to mount it in production. |
27
+
| dev | Start the execution of the server in development mode with the help of the "nodemon" package.|
32
28
33
29
## What about environment variables?
34
30
You should know that environment variables are dynamic character values, which allow you to store information related to credentials, configurations, etc..., then you will be presented with the ".env" file located within the server's source code, where in turn you will have a description about the operation of the available variables.
Copy file name to clipboardexpand all lines: README.md
+6-16
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Table of Contents:
18
18
- Installing necessary dependencies before proceeding with the installation. [[View]](/#before-you-start-the-installation)
19
19
- Cloning the Github repository that contains the Lovelace source code. [[View]](/#cloning-the-repository-and-starting-the-installation)
20
20
- Knowing the functionality of the files and directories found within the cloned repository. [[View]](/#knowing-a-little-more-about-the-contents-of-the-cloned-repository)
21
-
- Running the backend server on the network and in production mode with the help of the process manager for NodeJS PM2. [[View]](/#riding-the-lovelace-backend-and-going-geeper-into-it)
21
+
- Running the backend server on the network. [[View]](/#riding-the-lovelace-backend-and-going-geeper-into-it)
22
22
- Knowing the environment variables that the Lovelace Backend has. [[View]](/#what-about-environment-variables)
23
23
- Mounting the Lovelace Frotend built with Vite + React on the network. [[View]](/#setting-up-the-vite--react-application-delving-into-the-client)
24
24
- Knowing and modifying the environment variables that the Vite + React application has (Frontend). [[View]](/#modifying-environment-variables)
@@ -38,7 +38,7 @@ Table of Contents:
38
38
- Video-based example of the use of the web application on mobile devices. [[View]](https://lovelace-docs.codewithrodi.com/Web-App-Usage#using-the-web-application-on-mobile)
39
39
40
40
## Before you start the installation
41
-
Installing Lovelace on your computer or server is relatively simple, you shouldn't have any major complications in the process; however, before you start cloning the repository, make sure you have at least `NodeJS v18.0.0`, `Python v3.10` and `PM2 with SocketIO Deps [npm install -g @socket.io/pm2 pm2]`.
41
+
Installing Lovelace on your computer or server is relatively simple, you shouldn't have any major complications in the process; however, before you start cloning the repository, make sure you have at least `NodeJS v18.0.0` and `Python v3.10`.
42
42
43
43
Consider that, in case you do not have the required NodeJS version installed on your system, you can use the version manager [`NVM (Node Version Manager)`](https://github.com/nvm-sh/nvm#installing-and-updating).
Next, we will install the necessary dependencies to be able to use PM2 on SocketIO and in the same way we will install the PM2 process manager, consider that this installation has the `-g` parameter, that is, it will be done globally. The mentioned packages that you will install are necessary, you will not be able to run the server in production if you do not have them.
75
-
76
-
```bash
77
-
npm install -g @socket.io/pm2 pm2
78
-
```
79
-
80
74
Now, assuming you have the aforementioned dependencies installed on your system, we can proceed to the next step...
81
75
82
76
# Cloning the repository and starting the installation
@@ -131,22 +125,18 @@ Let's start with the server, this is where the magic will happen, you can commun
131
125
# Accessing the <Server> folder that houses the repository you cloned earlier
132
126
cd Server/
133
127
134
-
# Running the server in Production mode
135
-
npm run production
128
+
# Running the server...
129
+
npm run start
136
130
```
137
131
138
132
If you have done everything correctly, the server should already be running on your system. You can check it if you access `http://0.0.0.0:8000/api/v1/`!
139
133
140
134
## Other ways to raise the server...
141
135
142
-
Consider that, when setting up the server in production, `PM2` is used, which is nothing more than a `Process Manager for NodeJS`. It is used in Lovelace due to its built-in load balancer, as well as allowing you to always keep applications active and load them without any downtime, among other advantages in terms of performance. Next, you will have a table with all the scripts you can run using `npm run <script_name>`.
143
-
144
136
| Script (`npm run <script_name>`) | Description |
145
137
| ------ | ------ |
146
-
| start | Start the server running normally, you may prefer to use this mode in case you want to make development level changes within the source code regarding the server. |
147
-
| production | As previously seen, this mode allows you to mount the server on the network in production mode. |
148
-
| stop | It allows turning off the server that was started in production, since, unlike `npm run start`, when executing `npm run production` the process goes to the background, that is, you cannot give a `CTRL + C` to be able to end the execution, otherwise you should use `npm run stop`. |
149
-
| restart | Following the same line of the previous script of the "`stop`" table, with `npm run restart` you allow to restart the server that is being executed in production mode. |
138
+
| start |The normal execution of the server begins, you can consider this option in case you want to mount it in production. |
139
+
| dev | Start the execution of the server in development mode with the help of the "nodemon" package.|
150
140
151
141
## What about environment variables?
152
142
You should know that environment variables are dynamic character values, which allow you to store information related to credentials, configurations, etc..., then you will be presented with the ".env" file located within the server's source code, where in turn you will have a description about the operation of the available variables.
0 commit comments