FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptSolidServer/src/index.js at gh-pages · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
JavaScriptSolidServer
JavaScriptSolidServer
Repository navigation
Code
Issues
164
(164)
Pull requests
14
(14)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScriptSolidServer
/
src
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 294 Bytes
Breadcrumbs
JavaScriptSolidServer
/
src
/
index.js
Copy path
File metadata and controls
9 lines (7 loc) · 294 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
import
{
startServer
}
from
'./server.js'
;
import
{
defaults
}
from
'./config.js'
;
const
PORT
=
process
.
env
.
PORT
||
defaults
.
port
;
const
HOST
=
process
.
env
.
HOST
||
'0.0.0.0'
;
startServer
(
PORT
,
HOST
)
.
then
(
(
)
=>
{
console
.
log
(
`JavaScript Solid Server running at http://
${
HOST
}
:
${
PORT
}
`
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL