Last active
August 19, 2019 12:13
-
-
Save eliabeleal/54b7b402e0f84316b2d651d6b355df3a to your computer and use it in GitHub Desktop.
Conectando PostgreSQL (Sequelize) e MongoDB em uma mesma aplicação Node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const mongoose = require('mongoose') | |
const routes = require('./routes') | |
const server = express(); | |
mongoose.connect('mongodb://localhost/mydb', { useNewUrlParser: true }) | |
server.use(express.json()) | |
server.listen(3333); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment