Initial Vue & Backend Files
This commit is contained in:
17
API/index.js
Normal file
17
API/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const bodyParser = require('body-parser');
|
||||
const PORT = 4000;
|
||||
const cors = require('cors');
|
||||
const axios = require('axios');
|
||||
|
||||
app.use(cors());
|
||||
app.use(bodyParser.urlencoded({extended: true}));
|
||||
app.use(bodyParser.json());
|
||||
|
||||
|
||||
app.listen(PORT, function(){
|
||||
console.log('Express server running on port:',PORT);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user