server.js 450 Bytes

const express = require('express');
const app = express();
const api = require('./apiRouter');
const cors = require('cors');
const bodyParser = require('body-parser');


app.use(cors());
app.use(bodyParser.json({limit: '100mb'})); 
app.use(bodyParser.urlencoded({limit: '100mb', extended: true}));
app.use(bodyParser());
app.use('/api', api);

const port = 3003;
app.listen(port, () => console.log(`노드서버 시작 : ${port}`));