NodeJS starter eCommerce project with ExpressJS and Marketcloud
Please note that after using the deploy to heroku button, if you run the heroku git:clone from the Heroku CLI you will get an empty repository. Read more here.
To avoid this,clone this project to your development machine, then add Heroku as Git remote. You will be able to commit your changes to the GitHub repository and Heroku's continuous deployment will update your app automatically. You can follow these steps
You will need nodejs, npm and bower
Clone the respository to your local machine
cd to/the/directory/ npm install && bower install
Every Marketcloud application has a pair of public and secret key that are used to make requests. To find your application's keys, go at https://www.marketcloud.it/applications click on the arrow at the right corner of your application's box and then click on properties . Here you can see your app's keys.
The app.js script look for these keys in your environment, so you have to set the variables in your system:
export MARKETCLOUD_PUBLIC_KEY="your-public-key"; export MARKETCLOUD_SECRET_KEY="your-secret-key";
Now you can run the app with
This app uses Braintree to handle payments, in order to accept payments using this app, remember to setup the Braintree integration in your Marketcloud Dashboard. More information here Braintree integration for Marketcloud
You can also use custom payment methods of course. Ask us!
If you used the "deploy to heroku" button, and you run the command
heroku git:clone appname from the Heroku CLI you will get an empty repository. Read more here.
To use this starter project with Heroku, follow these steps:
git clone https://github.com/Marketcloud/node-marketcloud-starter
git remote add heroku https://git.heroku.com/your-app-name.git. Remember to replace your-app-name with your Heroku app name.
git clone https://github.com/Marketcloud/node-marketcloud-starter cd node-marketcloud-starter git remote add heroku https://git.heroku.com/your-app-name.git # Now you can edit the project as you want git add myfile.js git commit -m 'Added my modifications to Marketcloud starter project' git push heroku master