Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cvh-camera
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Döring
cvh-camera
Commits
bc9b296c
Commit
bc9b296c
authored
4 years ago
by
Simon Döring
Browse files
Options
Downloads
Patches
Plain Diff
Add typescript compiler to dependencies
parent
b732dd1b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-2
5 additions, 2 deletions
README.md
camera-server/package-lock.json
+9
-3
9 additions, 3 deletions
camera-server/package-lock.json
camera-server/package.json
+5
-2
5 additions, 2 deletions
camera-server/package.json
with
19 additions
and
7 deletions
README.md
+
5
−
2
View file @
bc9b296c
...
...
@@ -16,8 +16,11 @@ One can also refresh the token for a given slot or simply deactivate it.
## Compiling and Running the Server
The camera server is written in typescript, a superset of javascript. That means that is has to be compiled before being able to start.
To compile the code, install the typescript compiler using npm
`npm install -g typescript`
or apt
`apt install node-typescript`
.
Navigate into the
`camera-server`
folder and run
`tsc`
. This will compile the files into a newly created folder
`dist`
.
To compile the code, install all dependencies, including the typescript compiler.
This can be done by running
`npm install`
in the
`camera-server`
folder.
Then run
`npm run build`
in the same folder. This will compile the files into a newly created folder
`dist`
.
If you want to compile the code into a single file, run
`npm run build-single-file`
instead.
Once the code is compiled, the server can be started with
`node server.js`
in the
`dist`
folder.
...
...
This diff is collapsed.
Click to expand it.
camera-server/package-lock.json
+
9
−
3
View file @
bc9b296c
...
...
@@ -29,9 +29,9 @@
}
},
"@types/node"
:
{
"version"
:
"14.14.
1
2"
,
"resolved"
:
"https://registry.npmjs.org/@types/node/-/node-14.14.
1
2.tgz"
,
"integrity"
:
"sha512-
ASH8OPHMNlkdjrEdmoILmzFfsJICvhBsFfAum4aKZ/9U4B6M6tTmTPh+f3ttWdD74CEGV5XvXWkbyfSdXaTd7g
=="
"version"
:
"14.14.2
0
"
,
"resolved"
:
"https://registry.npmjs.org/@types/node/-/node-14.14.2
0
.tgz"
,
"integrity"
:
"sha512-
Y93R97Ouif9JEOWPIUyU+eyIdyRqQR0I8Ez1dzku4hDx34NWh4HbtIc3WNzwB1Y9ULvNGeu5B8h8bVL5cAk4/A
=="
},
"@types/socket.io"
:
{
"version"
:
"2.1.12"
,
...
...
@@ -180,6 +180,12 @@
"debug"
:
"~4.1.0"
}
},
"typescript"
:
{
"version"
:
"4.1.3"
,
"resolved"
:
"https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz"
,
"integrity"
:
"sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg=="
,
"dev"
:
true
},
"vary"
:
{
"version"
:
"1.1.2"
,
"resolved"
:
"https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"
,
...
...
This diff is collapsed.
Click to expand it.
camera-server/package.json
+
5
−
2
View file @
bc9b296c
...
...
@@ -3,12 +3,15 @@
"version"
:
"1.0.0"
,
"main"
:
"server.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"build"
:
"npx tsc"
,
"build-single-file"
:
"npx tsc -m amd --outfile dist/server.js"
},
"dependencies"
:
{
"socket.io"
:
"^3.0.4"
},
"devDependencies"
:
{
"@types/socket.io"
:
"^2.1.12"
"@types/node"
:
"^14.14.20"
,
"@types/socket.io"
:
"^2.1.12"
,
"typescript"
:
"^4.1.3"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment