remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/bin/remix-ide

17 lines
439 B

7 years ago
#!/usr/bin/env node
var httpServer = require('http-server')
var remixd = require('remixd')
7 years ago
var server = httpServer.createServer({
root: __dirname + '/../'
})
7 years ago
var folder = process.argv.length > 2 ? process.argv[2] : __dirname
7 years ago
server.listen(8080, '127.0.0.1', function () {})
var router = new remixd.Router()
router.start(folder)
console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080 and sharing ' + folder)