Skip to content
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

I think you need to change the backend server.js to index.js #4

Open
raushan578 opened this issue May 13, 2023 · 1 comment
Open

I think you need to change the backend server.js to index.js #4

raushan578 opened this issue May 13, 2023 · 1 comment

Comments

@raushan578
Copy link

No description provided.

@hanu77raj
Copy link

We can run backened using following steps:

  • comment line 41 in server\controllers\studentController.js and instead use const validPassword=password===student.password;
  • make a .env file and set environment variable for JWT_SECRET and MONGO_URI.If you are using local database, fed database with registartionNumber and password used in Readme file .
  • if mongoose is throwing error..try to install mongoose using npm.
  • run node server.js command in root directory of server.

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

No branches or pull requests

2 participants