-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
Mongo DB #129
Comments
You can actually access your Docker mongo instance by locally accessing port 27000. However, if you want to use your own Mongo Atlas, you just need to change the Mongo URL in the environment file. Please refer to this document for more info on how to do so. |
@smaharj1 So that I am aware of. Now here's what's happening. I see the collections have been created on my Atlas however those collections are empty. However, only after I have initialized the Veniqa Docker Container (docker-compose up), I am able to access Mongo on port 27000 and see the collections with documents in them. If I do not start the platform using docker, I get a Winston JS error stating that I need to specify a DB to connect to. It's quite weird really... All in all, I am as of now running Veniqa on my local system with the Mongo URL set to my Atlas URL. However, the collections in Atlas have no documents in them but the Mongo instance running on port 27000 (on my local machine) has the necessary documents (the ones found in the data dump folder of this repo). Please refer to the screenshot. This is what I see on my Mongo Atlas |
The winston error is the desired behavior. If you want to directly connect to Atlas, please change/add the URL of Atlas in |
So I have populated the .env file in management-webclient and management-server with the necessary credentials and I have renamed the file to .env.development. Post these steps, I am receiving the Winston error. What did you mean by "switching to .env files in your individual projects." Have I missed something? |
Can you rename it to |
I see that in |
I made this change and tried accessing localhost:3000 through my browser and it is stuck in an endless "loading" state. |
I have been trying like crazy and I keep getting Error Code 403 Forbidden when I attempt to upload images to my S3. It seems to be caused because of some CORS error. @Viveckh maybe you could help me out here since it is a backend task. This is one of the errors :
and then I see a bunch of I even went ahead and wrote up a CORS config:
What have you guys done to get this to work? |
I think the problem here is the bucket policy. As you can see from your code, only |
@smaharj1 I finally got S3 to work. Below is the Bucket Policy I set:
and this is the CORS config that I used:
|
Now that I am able to upload images to my S3, upon saving the new product, the management-server logs on my terminal show me the following error: Not sure what's causing this. Also, in my S3, I am seeing all the images that I had uploaded in the "thumbnail" folder. Is that supposed to happen? I understand that all of them need to be present in the "detailed images" folder but shouldn't only the image that is set as the thumbnail be a part of the "thumbnails" folder? |
@AmandaDLyon what do you get in the API response for this? Specifically trying to look at |
@smaharj1 Its a Code 500 (Internal Server Error). |
@smaharj1 I re-installed the whole platform after running Could you attempt to add or edit an existing problem to check if the issue persists on your end as well. Ideally it shouldn't. I am wondering if this is a bad config on my local machine. Maybe permissions issue..? |
Hey guys, I know that the first way to get the platform started is by using "docker-compose up" however what I have been trying to do is start up the individual code bases.
Now after a lot of attempts, I realized that when you start the whole stack through docker, it creates a local Mongo instance on port 27000 which is otherwise not accessible.
So if I want to use Mongo Atlas or say run the platform without docker (by individually running
npm serve
ornp run devstart
, how would I do that?Cheers!
The text was updated successfully, but these errors were encountered: