Skip to content

Instantly share code, notes, and snippets.

@donjosef donjosef/app.js
Last active Sep 26, 2019

What would you like to do?
Connect to database
const mongoose = require('mongoose');
//connect our server to database created with atlas
//Be sure to type this at the very bottom of the file, AFTER all the app.use()
.then(() => {
app.listen(8080, () => {
console.log('Server listening on port 8080...')
.catch(err => console.log('Error with mongoose connection', err))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.