UNPKG

sneaks-api

Version:

A RESTful API that collects and returns data on sneakers. This API will also find, compare and return a link of where to buy the sneaker based on the price.

18 lines (13 loc) 454 B
const express = require('express'); const app = express(); const mongoose = require('mongoose'); require('./routes/sneaks.routes.js')(app); require('dotenv').config(); const SneaksAPI = require('./controllers/sneaks.controllers.js'); var port = process.env.PORT || 4000; mongoose.Promise = global.Promise; /*app.listen(port, function () { console.log(`Sneaks app listening on port `, port); });*/ module.exports = app; module.exports = SneaksAPI;