Front-end development guides
Outline
A more in depth guide will be added later, but this is a rough outline of the steps required to host your app front-end:
- Create a psibase account
- Create a psibase package including a service, plugin, and UI
- Install the package to your subdomain
- [Optional] Register an http server that implements the psibase::ServerInterface to handle custom RPC/REST/GraphQl queries.
Virtual hosting
Psibase infrastructure nodes provide virtual hosting.
For example, for a local node being hosted at the default domain (psibase.127.0.0.1.sslip.io
), domains fall into two categories:
Category | Example | Description |
---|---|---|
root domain | psibase.127.0.0.1.sslip.io | Hosts the main page for the network and provides service-independent endpoints. |
service domain | my-service.psibase.127.0.0.1.sslip.io | This hosts user interfaces and RPC endpoints for individual services. |
Many endpoints are available by default at these domains, and services may even define and handle their own endpoints at service domains. To learn more about standard endpoints and defining custom endpoints, see the http requests reference docs.
Some javascript libraries are available at the common files endpoints that can make it easier for your external scripts to interface with psibase networks.