Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Requiring + setting up server
- const express = require('express');
- const app = express();
- const routes = require('./routes/database');
- // Interface
- app.use(express.static('build'));
- // API
- app.use('/db', routes);
- // Setting up a port and running app
- const port = process.env.PORT || 3000;
- app.listen(port);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement