Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Smartpay Example: integrate with html-and-node

Prerequisites

Prepare your own API keys

If you don't already have it, you can find your credentials at the settings > credentials page on your dashboard.

Make sure you have Node.js v14+ installed

You can make sure of it by executing:

node -v

Even if you do not intend to use Node as your back-end language, having Node.js v14+ would ensure a smooth experience to get our example code up and running.

If you already have it in place, you can skip the following and go directly to get started.

If you don't, we recommend using nvm.

Follow the official guide to install nvm properly, then:

nvm install --lts 14
nvm use --lts 14

Get started

Automated

Assuming you have Node.js v14+ now, the last step for you is to:

npm run start

⚠️ Please note that it could take a while for everything to be configured & installed.

then, after the build is finished, visit http://localhost:3080.


Manual

If this doesn't work out for you, try the following steps manually.

You will need to get BOTH frontend and backend servers running simutaneously for this example to work.

In the following steps, <PROJECT_ROOT> refers to the root of this example project (where client and server directories reside in).

Client

npm run start

Server

npm install && npm run start