The easiest way to see how you can get an application up and running locally with Abridged is to couple the capabilities of the Abridged CLI with the SDK Playground.
If it's your first time interacting with the Abridged CLI, we recommend going through the flow below for setting up a template application to quickly explore the CLI's functionality in two minutes.
To continue with the CLI quickstart guide, you'll need to have the Abridged CLI installed on your machine.
Create a new project folder to house your CLI demo app in by typing the following command in your shell:
$ mkdir abridged-cli-project && cd abridged-cli-project
The Abridged CLI conveniently generates a device address for you to connect to an existing account contract.
Start the development process and generate a device address for the Ropsten testnet by typing the following command in your shell:
$ archanova-cli develop -e ropsten
Open the SDK Playground and initialize it on the Ropsten testnet.
Click on the
create account tab in the
Click the Random button or enter a custom username that is at least 7 characters long to associate your account address with a username (also referred to as an ENS label/name).
Click on the Run button to create your account contract.
Click on the
create account device tab in the
ACCOUNT DEVICES section.
Copy the printed device address from your CLI, paste it into the parameter input, and click on the Run button.
Enter your application name when prompted in your shell.
The Abridged CLI will install a number of requisite source files and a Dockerfile in your project folder for you to now spin up your application . The installed source files are barebones so the template application won't do anything particularly interesting (yet!) until you add in custom app logic yourself.
The Abridged CLI will also generate a temporary callback URL where you can view the output from your handlers.js file.
Install the required npm packages into your project folder by typing the following command in your shell:
Run your application by typing the following command in your shell:
Congratulations! You just used the Abridged CLI to get an application up and running locally with the account contract integration!
If you're ready to dive deeper into what is possible with Abridged, you can do the following:
Walk through the remaining SDK Playground recommended flows
Go through the SDK reference for information about each available method
Read through the various Web 3 components you can access with the Abridged SDK
(COMING SOON) Complete the in-depth tutorials to integrate the SDK into an example app
(COMING SOON) Create a Web 3 app with our drag-and-drop, no-code Web Portal interface