These docs walk through the steps necessary to set up and launch both a test server and a production server to handle deposits and withdrawals, but before you get any deeper, it’s worth noting: you don’t have to start from scratch. SDF offers some tools that make it easy to implement those servers, and test them from the client side.
To help with server setup, SDF created Polaris, an extendable django reusable-app that comes with fully-implemented endpoints, templates, and database models. It’s built in Python using the community-supported Stellar Python SDK, and is compliant with the Stellar Ecosystem Protocols mentioned in the previous section.
In the Polaris repo, you can also find a Reference Implementation Project, a WIP example of an anchor server.
Image 1: Screenshots of the reference implementation
Polaris modularizes the parts of the codebase that interface with the Stellar network, and provides clear methods for developers to integrate their own deposit and withdrawal forms, KYC process, and banking rails connections. That means you can focus on implementing the business- and country-related aspects of your product without having to spend much time defining how to connect the server to the Stellar Network.
If you choose to use Polaris, you can jumpstart your deployment, and connect local rails to Stellar in weeks instead of months.
Once you have a server set up, SDF also maintains a Demo Client Project that makes it easy to test your implementation on both the testnet and the pubnet.
The public Deployed Demo Client allows you to run those tests without needing to set up a new hosting infrastructure for that project.
Image 2: Screenshots of the demo client
With the demo client, you can test your deposit and withdraw flows, and get information about the transactions that are created during those processes. To start testing the deploys, simply update the settings of the Demo Client (click the gear button on the bottom right) to include your project’s information.
If you just want to see what the flows look like from a client’s point of view, there’s also a public Demo Client Integrated with a Deployed Reference Server that gives a clear step-by-step visual example of how the functionalities work along with insightful information about the requests, protocols, and possible validation messages. You can run that demo right now and to get a sense of how the anchor/wallet interaction works.
Last updated Apr. 02, 2020