Skip to content

Commit

Permalink
Merge branch 'Student-Chapter-CSE:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
soumit-s authored Aug 19, 2023
2 parents 63bc9ec + 5cbda61 commit 5a883cb
Show file tree
Hide file tree
Showing 4 changed files with 366 additions and 12 deletions.
17 changes: 12 additions & 5 deletions backend/server.js → backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ cloudinary.config({
api_secret: process.env.API_SECRET,
});

connectDB();

const app = express();
app.use(
express.json({
Expand All @@ -30,8 +28,17 @@ app.use(
})
);

app.get("/api/v1", (req, res) => res.send('Hello from SCCSE-AOT'));
app.use("/api/v1/member", memberRoute);

app.listen(port, () => {
console.log("server is running on " + port);
});

connectDB()
.then(() => {
app.listen(port, () => {
console.log("server is running on " + port);
});
})
.catch(() => {
console.log("Couldn't start server");
})

Loading

2 comments on commit 5a883cb

@vercel
Copy link

@vercel vercel bot commented on 5a883cb Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sccseapi – ./backend

sccseapi.vercel.app
sccseapi-git-main-team-zetta.vercel.app
sccseapi-team-zetta.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5a883cb Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.