Skip to content

src/index.ts โ€‹

From Week 3 in-class: MongoDB + Vitest ยท original: si-679-f-26-week03-nyt-jessicadonoho/src/index.ts ยท all files in this project

ts
import { app } from './app.js';
import { connect } from './db.js';

const port = 6790;

await connect('mongodb://127.0.0.1:27017', 'week3app');

app.listen(port, () => {
  console.log(`Server running on port ${port}`);
});