mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-24 17:05:18 +00:00
Co-authored-by: gitstart <gitstart@gitstart.com> Co-authored-by: mayomi <ayandiranmayomi@gmail.com> Co-authored-by: amisdun <michealdunamis@gmail.com>
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
process.env.NC_BINARY_BUILD = 'true';
|
|
(async () => {
|
|
try {
|
|
const app = require('express')();
|
|
const { Noco } = require("nocodb");
|
|
const cors = require('cors')
|
|
const httpServer = app.listen(process.env.PORT || 8080);
|
|
app.use(cors())
|
|
app.use(await Noco.init({}, httpServer, app));
|
|
console.log(`Visit : localhost:${process.env.PORT}/dashboard`)
|
|
} catch(e) {
|
|
console.log(e)
|
|
}
|
|
})()
|