brianmc / raml-store

This project provides an persistent store for RAML files created using then embedded API Designer
MIT License
51 stars 18 forks source link

Missing deps #1

Closed quantuminformation closed 10 years ago

quantuminformation commented 10 years ago

Hi, thanks for providing the persistence setup!

I am finding that running your sample-designer

http://localhost:9013/sample-designer.html

results in lots of 500 errors for missing js dependencies. Is there an easy way to resolve this, ie do you have a download with all the deps or do I need to get them manually.

thanks

brianmc commented 10 years ago

Sorry for the delay in responding, for some reason I missed this in my inbox.

Can you give me some more details on the 500 errors? You must have API-Designer installed and RAML-Store installed and running.

Brian

quantuminformation commented 10 years ago

Of course thanks,

I can confirm both services are running.

Here is my network flow for the RAML store

10ms

GET directives.js 500 Internal Server Error localhost:9013 89 B 127.0.0.1:9013

38ms

GET remote-file-system.js 500 Internal Server Error localhost:9013 89 B 127.0.0.1:9013

Kind regards

On 20 January 2014 08:15, brianmc notifications@github.com wrote:

Sorry for the delay in responding, for some reason I missed this in my inbox.

Can you give me some more details on the 500 errors? You must have API-Designer installed and RAML-Store installed and running.

Brian

— Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-32740866 .

brianmc commented 10 years ago

So in the app folder of your api-designer install you should see a vendor folder. Make sure that the sample-designer.html is also present in this location (looks like it is if you are accessing it at 9013).

One easy way to check if everything is ok is to make sure the default api-designer is working, i.e. index.html or http://localhost:9013 I has exactly then same script references so if it works then sample-designer.html in the same folder should also work.

Let me know how this goes,

Brian

quantuminformation commented 10 years ago

thanks Brain,

when I move it from http://localhost:9013/sample-designer.html to http://localhost:9013/vendor/sample-designer.html then none of the scripts load I'm afraid.

I can confirm that http://localhost:9013/

runs as expected.

Kind regards

On 21 January 2014 05:44, brianmc notifications@github.com wrote:

So in the app folder of your api-designer install you should see a vendor folder. Make sure that the sample-designer.html is also present in this location (looks like it is if you are accessing it at 9013).

One easy way to check if everything is ok is to make sure the default api-designer is working, i.e. index.html or http://localhost:9013 I has exactly then same script references so if it works then sample-designer.html in the same folder should also work.

Let me know how this goes,

Brian

— Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-32823061 .

brianmc commented 10 years ago

So sample-designer.html should just be in the app directory, i.e. the same directory as index.html. Sorry if I confused the issue by mentioning the vendor folder I just wanted to make sure it was there and that the sample-designer.html file was at the same level (i.e. in the app folder, not inside the vendor folder).

quantuminformation commented 10 years ago

Thanks, but when sample-designer.html is in the app directory there is still a bunch of scripts missing from the app directory from the git clone of the API designer.

Kind regards

On 21 January 2014 20:02, brianmc notifications@github.com wrote:

So sample-designer.html should just be in the app directory, i.e. the same directory as index.html. Sorry if I confused the issue by mentioning the vendor folder I just wanted to make sure it was there and that the sample-designer.html file was at the same level (i.e. in the app folder, not inside the vendor folder).

— Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-32957227 .

brianmc commented 10 years ago

OK let me check if API Designer has changed something around its scripts.

quantuminformation commented 10 years ago

cheers mate!

Kind regards

On 27 January 2014 16:13, brianmc notifications@github.com wrote:

OK let me check if API Designer has changed something around its scripts.

— Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-33381334 .

comptly commented 10 years ago

Not sure what might have changed in the structure, but happy to connect you to some api-designer engineers if you have any questions.

//Dillon On Jan 27, 2014 8:24 AM, "brianmc" notifications@github.com wrote:

OK let me check if API Designer has changed something around its scripts.

— Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-33381334 .

brianmc commented 10 years ago

Looks like there were a bunch of script and css dependency changes in index.html and those needed to be reflected in my sample-designer.html. I have synced with the latest api-designer code, updated my sample-designer.html and everything is good again.

Thank-you Nikos for the great feedback and for your patience. Please let me know if you have any other issues.

Regards,

Brian

quantuminformation commented 10 years ago

Great work mate!!

Kind regards

On 28 January 2014 05:38, brianmc notifications@github.com wrote:

Looks like there were a bunch of script and css dependency changes in index.html and those needed to be reflected in my sample-designer.html. I have synced with the latest api-designer code, updated my sample-designer.html and everything is good again.

Thank-you Nikos for the great feedback and for your patience. Please let me know if you have any other issues.

Regards,

Brian

Reply to this email directly or view it on GitHubhttps://github.com/brianmc/raml-store/issues/1#issuecomment-33452584 .