nhduy1985 / demandware-angularjs-seed

An AngularJS mini-site for show up data from Demandware
18 stars 12 forks source link

console errors #1

Closed apartyka closed 10 years ago

apartyka commented 10 years ago

I am seeing two console errors: one for a missing logo (no big deal), and the second is a 404 for a url.

Cannot GET/base-url/api-version/categories/root?levels=2&client_id=client-id

How can I fix the url 404?

I did have one problem in setup running this step. I'm on windows, but I have things running in a git bash shell. My guess is I'm missing something in this file to serve the pages?

//configure the config file vm app\scripts\config.js

nhduy1985 commented 10 years ago

It seems you missed some configuration. Make sure that your sandbox is available with OCAPI

Sent from Yahoo Mail for iPhone

apartyka commented 10 years ago

What is this step in the install?

//configure the config file vm app\scripts\config.js

It does not work for me from my git bash shell or my windows command prompt.

I am not familiar with OCAPI. Are there business manager settings that I should be aware of? Or just settings for app/scripts/config.js? Mine looks incomplete without the above command running properly.


'use strict';

angular .module('demandwareAngularSeedApp') .constant('CONFIG', { 'app': { 'title': 'Demo Shop' }, 'demandware': { 'baseUrl': 'base-url', 'apiVersion': 'api-version', 'clientId': 'client-id', 'publicSiteUrl': 'public-site-url' } });

nhduy1985 commented 10 years ago

Hi Apartyka,

You can see more detail on Demandware OCAPI at https://info.demandware.com/DOC3/topic/help/OCAPI/14.8/usage/OpenCommerceAPI.html .

The app needs to be provided these required credential which is from OCAPI

'demandware': {
'baseUrl': 'base-url',
'apiVersion': 'api-version',
'clientId': 'client-id',
'publicSiteUrl': 'public-site-url'
}

Since the app requires OCAPI, so I would like you start studying Demandware OCAPI at https://xchange.demandware.com/community/developer/open_commerce_apis.

Please let me know if you have any question.