https://github.com/ethiclab/codeserver
https://github.com/ethiclab/codeserver
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethiclab/codeserver
- Owner: ethiclab
- Created: 2019-12-23T17:05:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T17:05:22.000Z (over 6 years ago)
- Last Synced: 2025-06-09T14:06:36.217Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Server
npm ci
npm start -- --options ./options.js
# Options
```javascript
module.exports = {
bind: {
address: '0.0.0.0',
port: 8080
},
routeFile: './routes.js'
}
```
# Routes
```javascript
module.exports = [
{
method: "get",
path: "/",
code: (req, res, next) => {
res.send('
Hello, World!
')
}
}
]
```