blocklet / json-resume

json-resume
Other
0 stars 0 forks source link

Getting Started with Create Blocklet

This project was bootstrapped with Create Blocklet.

This blocklet is a dapp project, which means this is a full-stack application. It's contained both server and client code.

File Structure

Development

  1. Make sure you have @blocklet/cli installed

    Blocklet needs blocklet server as a dependency. So you need to install it first.
    npm install -g @blocklet/cli
    See details in https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#use-the-binary-distribution

  2. Init blocklet server & start blocklet server

    Before starting an blocklet server, you need to init blocklet server.
    blocklet server init --mode=debug
    blocklet server start
    See details in https://docs.arcblock.io/abtnode/en/introduction/abtnode-setup#configure-abt-node

  3. Go to the project directory cd [name]

  4. Install dependencies: npm install or yarn

  5. Start development server: blocklet dev

Bundle

After developing a blocklet, you may need to bundle it. Use npm run bundle command.

Deploy

Upload to blocklet store

Q & A

  1. Q: How to change a blocklet's name?

    A: Change the name field in the package.json file, change the name field in the blocklet.yml file.

    You can also change the title field and description field in the blocklet.yml file.

    Run blocklet meta command, you will get a did config, copy the did value.

    Replace this command "bundle:client": "PUBLIC_URL='/.blocklet/proxy/{did}' npm run build", in package.json

    Replace did field in the blocklet.yml

  2. Q: How to change a blocklet's logo?

    Change the logo.png file root folder.

    Or you can change the logo field in the blocklet.yml file.

    Make sure you have added the logo path to the blocklet.yml file files field.

Learn More

License

The code is licensed under the Apache 2.0 license found in the LICENSE file.