Skip to content

functionalities button added #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: CodewithRajDeep-patch-1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ educational resources more inclusive, ensuring that individuals with disabilitie

<img src= "https://sithcomputers.com/wp-content/uploads/2021/02/11th-and-12th-cs-1.gif" width="256"/>

## Hardware Requirements :
## Hardware Requirements :
⦁ Development Machine: Computer/Laptop.
⦁ Processor : 64-bit, four-core, 2.4 GHz minimum per core.
⦁ Ram : 4 GB for developer and evaluation use.
Expand All @@ -31,7 +31,9 @@ educational resources more inclusive, ensuring that individuals with disabilitie
⦁ Node dependencies & react-native version- current.

<img src="https://www.doynt.com/blog/wp-content/uploads/2018/04/animation.gif" width="256"/>
<img src="https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExcHB4c3RqcnRyMmtoZzFhY3g0aXM4dGwwcjYyYWlzdWx6N3M0ZHZsciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/pqMSyHmekA1Qe7Utp7/giphy.webp" width="256"/>

<img src="https://i.pinimg.com/originals/f4/6c/4f/f46c4f0c2842ed57ac3670e35faaa411.gif" width="256"/>



Expand Down
5 changes: 3 additions & 2 deletions programbase/Backend/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PORT=4001
MongoDBURI="mongodb+srv://[email protected]/"
PORT=
MongoDBURI=

32 changes: 19 additions & 13 deletions programbase/Backend/index.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
import cors from "cors";
import dotenv from "dotenv";
import express from "express";
import mongoose from "mongoose";
import dotenv from "dotenv";
import cors from "cors";

import bookRoute from "./route/book.route.js";
import userRoute from "./route/user.route.js";

const app = express();

app.use(cors());
app.use(cors());

app.use(express.json());

dotenv.config();

const PORT = process.env.PORT || 4000;
const URI = process.env.MongoDBURI;

// connect to mongoDB
app.get('/', (req, res) => {
res.send('Backend is running');
});

app.post('/api/messages', (req, res) => {
const { text } = req.body;
res.json({ text: `Bot says: ${text}`, sender: 'bot' });
});

try {
mongoose.connect(URI, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
console.log("Connected to mongoDB");
mongoose.connect(URI);
console.log("Connected to mongoDB");
} catch (error) {
console.log("Error: ", error);
console.log("Error: ", error);
}

// defining routes

app.use("/book", bookRoute);
app.use("/user", userRoute);

app.listen(PORT, () => {
console.log(`Server is listening on port ${PORT}`);
});
console.log(`Server is listening on port ${PORT}`);
});
16 changes: 0 additions & 16 deletions programbase/Backend/node_modules/.bin/nopt

This file was deleted.

17 changes: 0 additions & 17 deletions programbase/Backend/node_modules/.bin/nopt.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions programbase/Backend/node_modules/.bin/nopt.ps1

This file was deleted.

Loading
Loading