Skip to content

Commit

Permalink
Connect server to mongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
andersholt committed May 4, 2022
1 parent 9612309 commit 2ef5a51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import cookieParser from "cookie-parser";
import fetch from "node-fetch";
import { MoviesApi } from "./moviesApi.js";
import { MongoClient } from "mongodb";
import compression from "compression";
dotenv.config();

const mongoClient = new MongoClient(process.env.MONGODB_URL);
const app = express();
app.use(compression());
app.use(bodyParser.json());
app.use(cookieParser(process.env.COOKIE_SECRET));

Expand Down

0 comments on commit 2ef5a51

Please sign in to comment.