First commit with base dependencies and file structure
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//require dependencies
|
||||
const express = require('express'),
|
||||
app = express(),
|
||||
router = express.Router(),
|
||||
port = process.env.PORT || 4200;
|
||||
|
||||
|
||||
//define a route, usually this would be a bunch of routes imported from another file
|
||||
router.get('/', function (req, res, next) {
|
||||
res.send('Welcome to the Ucharify API');
|
||||
});
|
||||
|
||||
//add routes to express app
|
||||
// routes(app);
|
||||
|
||||
//start Express server on defined port
|
||||
app.listen(port);
|
||||
|
||||
//log to console to let us know it's working
|
||||
console.log('Ucharify API server started on: ' + port);
|
||||
Reference in New Issue
Block a user