Boilerplate for E-Com Plus apps with Node.js and Express web framework
Setup the source of your new E-Com Plus app with this boilerplate by running the following commands (bash):
mkdir my-app
cd my-app
git clone https://github.com/ecomclub/express-app-boilerplate.git
cp -r express-app-boilerplate/app/* ./
rm -rf express-app-boilerplateYou should replace my-app with the name of your
application (on kebab-case).
-
Configure custom Store API procedures to specify the webhooks your app should receive at
lib/store-api/procedures.js; -
If your app has custom daemon processes, you may run them from
bin/local.js; -
Edit
routes/ecom/webhooks.jsto handle received webhooks from Store API properly; -
Add custom web app routes by creating new files to
routesfolder and adding them to Express router atbin/web.js; -
You may also create new JS files at
libfolder to add new methods or handlers to be included on your app source;