Skip to content

Instantly share code, notes, and snippets.

@eliabeleal
Last active August 19, 2019 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliabeleal/54b7b402e0f84316b2d651d6b355df3a to your computer and use it in GitHub Desktop.
Save eliabeleal/54b7b402e0f84316b2d651d6b355df3a to your computer and use it in GitHub Desktop.
Conectando PostgreSQL (Sequelize) e MongoDB em uma mesma aplicação Node.js
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