- Clone the project
- Install dependencies:
$ npm install
- Create a .env file in this project's root directory (
simple-onboarding-form
) with your partneraccount_id
and your secret API key:
PARTNER_ACCOUNT_ID=acct_XXXX
TILLED_SECRET_KEY=sk_XXXX
Note: If you have not created a sandbox account or API keys, please review our Initial Setup page.
-
Run the sample server (from the project root):
$ node app.js
or, to enable live reload:
$ npm run live
- Navigate to http://localhost:7070 in your browser, fill out the name and email fields.
- Optional: Select a # template (defaults to all available # templates).
- Go here to see your new account.
- Fill out the fields in the onboarding form and submit.
- If your application contains errors, check the console for a complete list of errors and make the appropriate changes before resubmission.
- View the newly created account details in the console.
- Go here to see your applications status.
- Edit the logic in the
/product-codes
inapp.js
to control which # templates to display in the create account form.