This is a new mostly bash-based implementation of a minimal and immanent AO server. No database, user accounts are created directly in the OS.
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.
 
 

19 lines
496 B

const express = require('express')
const app = express()
const port = process.env.PORT || 3000
app.use(express.json())
const os = require('os')
console.log('Node.js is running as:', os.userInfo().username)
// Import routes here to build our custom web server instance
indexRoute = require('./index')
app.use('/', indexRoute)
registerRoute = require('./routes/register')
app.use('/', registerRoute)
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`)
});