Set up a Hyperweb app by running one command ⚛️
First, install create-hyperweb-app
globally using npm:
npm install -g create-hyperweb-app
Then, create your new Cosmos app by running the following command:
# you can also use `cha` instead of `create-hyperweb-app` for shortcut ;)
create-hyperweb-app
During the setup process, you'll be prompted to enter the name of your app. For example:
> name: my-app
Note: You must have an SSH key added to your GitHub account to complete the setup process. For instructions on how to generate and add an SSH key, please refer to GitHub's documentation.
Once the app is created, move into the app directory and start the development server:
cd my-app
yarn && yarn dev
Now your app should be running on http://localhost:3000
!
You don’t need to install or configure cosmjs, keplr, nextjs, webpack or Babel.
Everything is preconfigured, ready-to-go, so you can focus on your code!
To create a new app, you may choose one of the following methods:
npm install -g create-hyperweb-app
Then run the command:
create-hyperweb-app
we also made an alias cha
if you don't want to type create-hyperweb-app
:
cha
npx create-hyperweb-app
npm init hyperweb-app
yarn create hyperweb-app
Argument | Description | Default |
---|---|---|
--repo |
Set custom repository for cha templates | None |
--install |
Automatically install dependencies | true |
--printCmd |
Print the command to run after setup | true |
-n , --name |
Provide a project name | None |
-e , --example |
Provide an example name | None |
-t , --template |
Define the template to use | None |
-b , --fromBranch |
Specify the branch to use for cloning | None |
Checkout these related projects:
🛠 Built by Cosmology
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.