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

Kindly mention the process for Running the project? #9

Open
AshutoshVerma16 opened this issue May 4, 2020 · 8 comments
Open

Kindly mention the process for Running the project? #9

AshutoshVerma16 opened this issue May 4, 2020 · 8 comments

Comments

@AshutoshVerma16
Copy link

Hi Good Evening,

Its really great project. I check the components and data flow, Well structured.

I was running this project on my env, facing some issues in api connectivity. Throwing 500 internal server error and due to this dropdown fields are not populating.

It would be great if you help me out in figuring the same.

Thanks and Regards
Ashutosh Verma

@ujjalacharya
Copy link
Owner

Although I've included the way to run the project in the markdown, there might be some problem depending upon the system you're trying to run it on. Will you be able to send the error that you're receiving and a screenshot of it. That might help me to figure it out.

Regards

@AshutoshVerma16
Copy link
Author

I followed the steps as mentioned in the readmd file.

The error persists is:

postman api locations 500 error
Browser console error
browser error

@AshutoshVerma16
Copy link
Author

I guess the API is not connected. As of now, not getting the data in the required fields

@AshutoshVerma16
Copy link
Author

The process I followed is listed below:

Starting the Mongo Shell

Then I mentioned the Mongo URI in the .env file from mongo-atlas. The location of the .env file is inside the server repo/folder
MONGO_URI = "mongodb+srv://reactappbusticket-bd2g7.mongodb.net/test"

Then I ran YARN & YARN SERVER command inside the server repo/folder
post yarn server command

Then I ran YARN & YARN DEV command in the client repo/folder

client yarn dev commnad

@AshutoshVerma16
Copy link
Author

The error screenshots are as follows:

Terminal error for /api/locations

error for locations api

Postman screenshots
postman api locations 500 error

Earlier I mentioned the screenshot for the browser and here it is again:

browser error
Browser console error

@AshutoshVerma16
Copy link
Author

These are the errors that are persisting, as of now. Can you please look into it. I'll be obliged.

@ujjalacharya
Copy link
Owner

I looked into the shots you provided and it seems like your mongo atlas db is not granting you authorization to access the collection. You need to enable the access before you make query to the database. Hope this helps
Ref: https://docs.mongodb.com/manual/reference/built-in-roles/

@alanjsebas
Copy link

alanjsebas commented Feb 22, 2021

@AshutoshVerma16 @ujjalacharya The issue has not been closed so I'm asking here.

how does one go about acquiring the keys/tokens for filling the various .env files?

Is the mongodb url alone enough?

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

3 participants