
mongoose.connect('mongodb://localhost:27017/upvoteDB', {
    useNewUrlParser: true,
    autoReconnect: true
})
    .then(() => console.log('[master] Connected to MongoDB.'))
    .catch((e) => console.log(e));

app.listen(port, () => {
    console.log(`[express] Listening at port ${port}`);
});
