FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptSolidServer/src/index.js at issue-179-withdraw · 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
8 lines (6 loc) · 245 Bytes
Breadcrumbs
JavaScriptSolidServer
/
src
/
index.js
Copy path
File metadata and controls
8 lines (6 loc) · 245 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
import
{
startServer
}
from
'./server.js'
;
const
PORT
=
process
.
env
.
PORT
||
3000
;
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