Demandware SiteGenesis using OCAPI and ExpressJS framework
This is a very basic implementation of SiteGenesis using OCAPI provided by Demandware. It contains many bugs and project is developed as proof-of-concept that complete checkout can be achieved by OCAPI.
HTML templates present /views/ folder are used just to render the data and templates are taken from various sites which provide free html/css templates.
App Hosted on Heroku : http://sitegenesis-ocapi.herokuapp.com (not maintained)
I use a free version of heroku so please expect some downtime :)
In order to change order status of newly placed order to New, Confirmed, Ready For Export, please see code present in dwre-hooks
folder and see hooks implementation in OCAPI DWRE documentation.
Sample Config File
//ocapiconfig.js
var config = {};
config.httphost = "http://xxx.yyy.xxx.demandware.net";
config.httpshost = "https://xxx.yyy.xxx.demandware.net";
config.siteid = "SiteGenesis";
config.ocapiversion = "16_3";
config.clientid = "your_client_id";
config.paymentmethodid = "CREDIT_CARD";
config.defaultshippingmethodid = "001";
module.exports = config;
Category Landing Page
PDP
Cart
Shipping
Billing
Payment
Confirmation
Order In BM
BM Payment