Skip to content

Group C/APIendpoints#55

Merged
Charan-Nimmagadda merged 14 commits intomainfrom
GroupC/APIendpoints
Apr 10, 2025
Merged

Group C/APIendpoints#55
Charan-Nimmagadda merged 14 commits intomainfrom
GroupC/APIendpoints

Conversation

@sanjay347
Copy link
Contributor

Complete the Sprint 1 Tasks by Group C.

server/.env Outdated
# Server Configuration
PORT=5000
MONGO_URI=mongodb://localhost:27017/IPMS
MONGO_URI=mongodb://127.0.0.1:27017/IPMS
Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda Apr 7, 2025

Choose a reason for hiding this comment

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

dont change the connection string.

server/index.js Outdated
if (!mongoose.connection.readyState) {
mongoose
.connect(process.env.MONGO_URI, mongoConfig)
.connect("mongodb://127.0.0.1:27017//IPMS", mongoConfig)
Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda Apr 7, 2025

Choose a reason for hiding this comment

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

dont change connection string

async function insertFormData(formData) {
try {
console.log(JSON.stringify(formData, null, 2));
if (mongoose.connection.readyState === 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

connection will be established, u dont have to check

Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

I cannot merge it because too many changes need to be made

@dorukayhan dorukayhan changed the title Group c/ap iendpoints Group C/APIendpoints Apr 8, 2025
@sanjay347
Copy link
Contributor Author

The files are updated now. Fixed the react form and also updated the signup page to route to form page if user is a student.

Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

image

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<!-- In client/public/index.html -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see anything important about this—please remove it

@sanjay347
Copy link
Contributor Author

Fixed the errors now @NNPhaniCharan Please check.

Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

The form not getting saved in DB

Copy link

@ravimulagondla ravimulagondla left a comment

Choose a reason for hiding this comment

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

changes looks good.

Copy link

@ravimulagondla ravimulagondla left a comment

Choose a reason for hiding this comment

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

resolve conflicts

@Charan-Nimmagadda Charan-Nimmagadda merged commit a91bdc2 into main Apr 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants