Skip to content

hamster-shared/hamster-doc

Repository files navigation

hamster-doc

If you want to test hamster in its entirety, you must have the following three components.

  • chain node: it needs to be deployed on a machine with a public ip
  • provider
  • client
  • gateway

The following is the minimum test procedure, for a full description please go to the README or tutorial of each project

1. Start hamster node

First you need to start a test chain node (please ensure that he is running on a machine with a public IP).

docker is the easiest way to run, we recommend using docker for building Hamster nodes

Points to note before run in docker:

  • You need to install docker by yourself before starting, refer to docker official website for details
  • You can choose to run your own test node with Docker. The start command is as follows, where is your local directory address, is your node name
docker run -p 30333:30333 -p 9944:9944 -p 9933:9933 --restart=always -d -v <YourDataDir>:/tmp/db --name=hamster hamstershare/hamster:v1.1.0 /opt/ttchain/node-template --dev --name <YourNodeName> --ws-external --rpc-external --rpc-cors all --unsafe-rpc-external --rpc-methods unsafe --unsafe-ws-external --no-mdns

You can check if the container is running properly by using the following command:

docker logs -f hamster

image-20220316165302793

2. Start and register the gateway to the chain node

After starting the chain node, you need to start the gateway. For the start-up process, please refer to Hamster Gateway Tutorials for the start-up process,then visits gateway

Change the address in the corresponding chainAddree to your chain address, account to your account helper,configure your public address and port,then follow up.

3. Register for Resources

Before registering for resources, please ensure that you have created an account and that it has a sufficient balance, please refer to Create an account

Once registered, start the provider process on the computer you wish to rent out, please refer to Hamster Provider Tutorials for the start-up process,then visits provider

image-20220222164333091

Change the address in the corresponding chainAddree to your chain address, account to your account helper, select cpu, memory, boot method and other information and click update.

Before renting the machine, you must pledge a certain amount, otherwise the order will fail to be executed, the pledge must meet the order amount of 1:1, you can play as pledge in "account information"

When the above operation is completed and confirmed, come to the "boot" and click start, then go to "Resource Details" to change your price, at last you can view your rental resources in the calculation market.

4. Purchase and use resources

Download the appropriate version of the client for your system through our distribution

Once downloaded, please refer to Hamster Client Tutorials to purchase and use the resources

Note: A certain amount of token must also be in the account, please refer to Transfer for the process. create-an-account)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published