mirror of https://github.com/nocodb/nocodb
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.
17 lines
420 B
17 lines
420 B
2 years ago
|
const Noco = require("../build/main/lib/Noco").default;
|
||
4 years ago
|
const express = require('express');
|
||
|
const cors = require('cors');
|
||
|
const server = express();
|
||
2 years ago
|
server.enable('trust proxy');
|
||
4 years ago
|
server.use(cors());
|
||
|
|
||
|
|
||
|
server.set('view engine', 'ejs');
|
||
|
|
||
|
|
||
|
(async () => {
|
||
2 years ago
|
const httpServer = server.listen(process.env.PORT || 8080, async () => {
|
||
|
server.use(await Noco.init({}, httpServer, server));
|
||
4 years ago
|
})
|
||
|
})().catch(e => console.log(e))
|