Needs a running solana local node to start.
To facilitate dev work, the test server uses keys derived from a seed file, which is persisted as seed.json
. If the seed file exists, it will check to see if the program is loaded and if it is, it will try and re-derive all existing communities and accounts.
To force the server to reload the BPF, delete seed.json
.
By default, the test server requires backend to run on port :8080 in order to function. Steps:
- Start the solana node
- Start the test server via
npm run start
- Copy the console output for the
.env
file into the backend's.env
file - Start the backend
- Wait for the test server to finish loading the BPF/Initialize if necessary
To develop against just a solana node, run the test server with environment variable ENGINE=direct
: ENGINE=direct npm run start