Updated Manual (markdown)
+19
-3
@@ -11,8 +11,24 @@ to build the project, I recommend running the website via nginx via the nginx co
|
|||||||
```sh
|
```sh
|
||||||
npm run start
|
npm run start
|
||||||
```
|
```
|
||||||
to run without building (not recommended). To start the connection websocket, go to the "src/backend" directory and run the following cmd:
|
to run without building (not recommended). To start the connection websocket, go to the "src/backend" directory and run the following commands:
|
||||||
```sh
|
```sh
|
||||||
node server.cjs
|
node ssh.cjs
|
||||||
|
node database.cjs
|
||||||
|
```
|
||||||
|
This will start the websockets on port 8081 and 8082. You will also need to start a MongoDB container. Here's an example docker compose:
|
||||||
|
```yml
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image : mongo
|
||||||
|
container_name: mongodb
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
volumes:
|
||||||
|
- ./mongodb:/data/db
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
This will start the websocket on port 8081.
|
|
||||||
Reference in New Issue
Block a user