Framework : squeezer.io
Documentation : docs.squeezer.io
- Install Squeezer's command line tool globally on your machine using npm:
npm install squeezer-cli -g
- Create a new project using the squeezer-2way-payment template:
sqz create --project my-first-project --template https://github.com/SqueezerIO/squeezer-2way-payment
- Switch to the project's directory:
cd my-first-project
- Initialize the local directory as a Git repository:
git init
- Add the files in your new local repository. This stages them for the first commit:
git add .
- Open up GitHub in a browser, navigate to the repositories page, and click on the
New
button, and enter the name of your project that you've created locally, in our case it will be my-first-project, then create the new repository. - In Terminal, add the URL for the remote repository where your local repository will be pushed: git remote add origin remote repository URL
- Commit the files that you've staged in your local repository:
git commit -m "First commit"
- Push the master branch to GitHub:
git push -u origin master
- Open up a new browser window and navigate to https://platform.squeezer.io, then login to the platform.
- Click on the import project button and import the project you've created from GitHub.
- In the first step of the import process, you have to select the repository from your list.
- In the second step of the import, you have to choose the provider and the stage name, dev or prod.
- After importing the project, the deployment will start automatically.
- When the deploy will be finished, we can check the logs by clicking on it.
- Scroll all the way down in the log window and copy the Swagger URL, then paste in a browser window.
/v1/itn/callback
- here we will receive every transaction that is made in or out of our wallet in real time.
/v1/wallet/create
- create a new wallet - Important! Save all the information you receive after a wallet creation (wallet address, walled id and token)
/v1/wallet/{id}/balance
- get wallet balance
/v1/wallet/{id}/transactions
- get a history of the transactions made on your wallet
/v1/wallet/sendTransaction
- initiate a blockchain transaction to another address
/v1/wallet/types
- get current available wallet types
This is our Squeezer 2-way payment decentralized app - we made it agnostic, so it can be adapted to absolutely any blockchain out there, make sure to test it out, and let us know what you think!