Skip to content

Commit

Permalink
Merge pull request #45 from mohammedfarisofficial/main
Browse files Browse the repository at this point in the history
new structure
  • Loading branch information
yozachar authored Oct 5, 2023
2 parents 427189a + f6a1e76 commit 59c556f
Show file tree
Hide file tree
Showing 92 changed files with 2,539 additions and 191 deletions.
Binary file removed assets/img/team/current/adarsh.png
Binary file not shown.
Binary file removed assets/img/team/current/ajeesh.jpg
Binary file not shown.
Binary file removed assets/img/team/current/ajmal.jpg
Binary file not shown.
Binary file removed assets/img/team/current/ajmalcrasheed.jpg
Binary file not shown.
Binary file removed assets/img/team/current/alffin.jpeg
Binary file not shown.
Binary file removed assets/img/team/current/angio.jpg
Binary file not shown.
Binary file removed assets/img/team/current/anjali.jpg
Binary file not shown.
Binary file removed assets/img/team/current/anusree.jpg
Binary file not shown.
Binary file removed assets/img/team/current/ashik.png
Binary file not shown.
Binary file removed assets/img/team/current/aswin.jpg
Binary file not shown.
Binary file removed assets/img/team/current/aswin2.jpg
Binary file not shown.
Binary file removed assets/img/team/current/benjamin.jpg
Binary file not shown.
Binary file removed assets/img/team/current/default.jpg
Binary file not shown.
Binary file removed assets/img/team/current/dona.jpg
Binary file not shown.
Binary file removed assets/img/team/current/hari.jpg
Binary file not shown.
Binary file removed assets/img/team/current/hiba.jpeg
Binary file not shown.
Binary file removed assets/img/team/current/jovial.jpg
Binary file not shown.
Binary file removed assets/img/team/current/nafih.jpg
Binary file not shown.
Binary file removed assets/img/team/current/poojitha.jpg
Binary file not shown.
Binary file removed assets/img/team/current/prabhavathi.jpg
Binary file not shown.
Binary file removed assets/img/team/current/principal.jpg
Binary file not shown.
Binary file removed assets/img/team/current/rasha.jpg
Binary file not shown.
Binary file removed assets/img/team/current/shabeer.jpeg
Binary file not shown.
Binary file removed assets/img/team/current/sreehari.jpeg
Binary file not shown.
36 changes: 36 additions & 0 deletions frontend-nextjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions styles/main.css → frontend-nextjs/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ figure {
img {
vertical-align: middle;
border-style: none;

}

svg {
Expand Down Expand Up @@ -6726,10 +6725,6 @@ button.bg-dark:focus {
.rounded-lg {
border-radius: 0.3rem !important;
}
.objectfit{
object-fit: cover;

}

.rounded-circle {
border-radius: 50% !important;
Expand Down
Binary file removed images/3dprinting.jpeg
Diff not rendered.
Binary file removed images/iedcxstartupbootcamp.jpeg
Diff not rendered.
Binary file removed images/poster.jpg
Diff not rendered.
Empty file removed pages/events/orientation2022
Empty file.
186 changes: 0 additions & 186 deletions previousteam.txt

This file was deleted.

2 changes: 2 additions & 0 deletions server/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MONGODB_URL="mongodb+srv://mohammedfarisofficial:[email protected]/?retryWrites=true&w=majority"
PORT=3001
36 changes: 36 additions & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
58 changes: 58 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import express from "express";
import bodyParser from "body-parser";
import mongoose from "mongoose";
import cors from "cors";
import dotenv from "dotenv";
import helmet from "helmet";
import morgan from "morgan";

// import authRouter from "./routes/auth.js";
// import productRouter from "./routes/product.js";
// import orderRouter from "./routes/order.js";
import eventRouter from "./routes/event.js";

// import colorRouter from "./routes/color.js";
// import sizeRouter from "./routes/size.js";
// import categoryRouter from "./routes/category.js";
// import reviewRouter from "./routes/review.js";

const app = express();

dotenv.config();
app.use(express.json());
app.use(helmet());
app.use(helmet.crossOriginResourcePolicy({ policy: "cross-origin" }));
app.use(morgan("common"));
app.use(bodyParser.json({ limit: "30mb", extended: true }));
app.use(bodyParser.urlencoded({ limit: "30mb", extended: true }));
app.use(cors());

app.get("/", async (req, res) => {
res.send("MNMLFM backend");
});

app.use("/api/event", eventRouter);
// app.use("/api/products", productRouter);
// app.use("/api/category", categoryRouter);
// app.use("/api/payment", stripeRouter);
// app.use("/api/order", orderRouter);
// //admin || dashboard
// app.use("/api/color", colorRouter);
// app.use("/api/size", sizeRouter);
// app.use("/api/review", reviewRouter);

//db connection
mongoose.set("strictQuery", true);
mongoose
.connect(
process.env.MONGODB_URL || {
useNewUrlParser: true,
useUnifiedTopology: true,
}
)
.then(() => {
app.listen(process.env.PORT, () =>
console.log(`server port ${process.env.PORT}`)
);
})
.catch((err) => console.log(`${err} : did not connect`));
19 changes: 19 additions & 0 deletions server/models/Event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import mongoose from "mongoose";

const eventSchema = new mongoose.Schema({
title: {
type: String,
required: true,
},
subTitle: {
type: String,
required: true,
},
dec: String,
key: String,
data: String,
youtubeLink: String,
});

const Event = mongoose.model("Event", eventSchema);
export default Event;
Loading

0 comments on commit 59c556f

Please sign in to comment.