-
Notifications
You must be signed in to change notification settings - Fork 179
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
Install instructions not working #3
Comments
Can you clarify what you mean by "npm install I get nothing" ?! Does this install the required packages locally? ... also tell me more about the errors, a dump of your console would be useful |
Sorry about not being clearer. npm install runs fine and finishes ok. However, when I run npm run dev I get npm ERR! missing script: dev and for run build-dev I get npm ERR! missing script: build-dev |
sorry I forgot to update the readme to reflect the changes I did recently. To build and run the dev version simply do "npm start" this should start webpack-dev-server and build dynamically the client in memory. For a production build do "npm run build-prod": this will output the files in /dist. You also need to check the config/ directory and adapt to your local database setup. At the moment my demo requires to connect to 2 DBs but you may only want one for testing. You will also need to adapt the records in the DB as described in the readme. |
Cheers! |
let me know if you have further trouble... can be a bit challenging to set up this sample depending on your experience with those tools |
I have just run the mongod using resource/db as the path for my database on port 27107 but when I try to connect to it, I get a MongoError: authentication failed. I have setup a user in the db and updated the config to use the new user and pw but its still giving the same error with code:18. |
you should not set the DB path to the resource/db of the sample, the path of the DB must be a path on your machine independent of any samples. Once you have setup the DB you can use the .json files in resource/db to import the records. You don't need to setup a user/pwd when you run mongo locally. I'm using an admin tool such as studio3T to manage my locals and remote databases without hassle ... |
Ok, I am not using any proprietary management tools unfortunately as my goal is to run this on a private cloud behind a proxy. mongoSvc cannot authenticate with mongo itself for rcdb but somehow succeeds to create forge-configurator. Steps I have taken to run this so far: Console output when I run $ npm start :
|
You can keep just one DB in the /config/development.config.js so it would look like this:
So you need to create a local DB in mongo called "forge-rcdb" which contains two collections "rcdb.materials" and "rcdb.models" that you can easily import using an admin tool like the one mentioned above. You can of course import the collections programmatically but it will be more work. I don't know why this would fail, but I would first use the tool to make sure the DB is working correctly and that you can connect to it before running the sample. |
I assume you got this sorted out so I will close the issue, if not let me know. |
Hi Phillipe, I sorted it but not without many hours of debugging. This is the screenshot for the errors I encountered in the browser once I got the mongo db setup. In order to get any model to appear, I had to go to the Autodesk model derivative API and upload/convert my own model (the service at https://models.autodesk.io/ didnt work), then updated the rcdb.models collections with the new values for the converted models. A learning experience but with some hiccups! Thanks :) |
Deploying Project #5 of my forge boilers on Heroku, as indicated in the readme instructions, would have allowed you to upload and manage your models in minutes ...
I'm glad you could sort it out. |
HI Phillipe,
Thanks for the great work done on this app so far. I am in the process of trying to write a dockerize it so that I can easily deploy it to any infrastructure but first I am trying to deploy it locally.
I have followed your steps to build the app i.e clone, npm install I get nothing. npm run dev and npm run build-dev throws missing script errors.
So, I have setup mongo on my machine to listen on port 27017 and run npm start and I get a connection timed warning.
Can you help me get setup please?
The text was updated successfully, but these errors were encountered: