logos-innovation-lab / waku-objects-playground

A simple waku chat application to play with and test waku objects
https://chat.wakuplay.im
Apache License 2.0
2 stars 1 forks source link

Waku Objects: Playground

Waku Objects Playground is a simple chat app. Its main use is to showcase Waku Objects, develop and test them.

Developing

Install dependencies with pnpm install. Then start the development server:

# bind to 127.0.0.1
pnpm dev --host

# or start the server and open the app in a new browser tab
pnpm dev --open

Building

To create a production version of your app:

pnpm build

You can preview the production build with pnpm preview.

If you want to create a build that can be statically served, you need to set env STATIC=TRUE.

STATIC=TRUE pnpm build

The outcome is in build folder.

Config

Use env variables to specify:

# Which waku node to connect to
# Options:
#    local       single waku node running in docker
#    production  waku nodes used for production deployment
# Defaults to
PUBLIC_WAKU='production'

# Which blockchain to connect to
# Options:
#    local    local chain running in docker
#    chiado   chiado testnet
#    gnosis   gnosis mainnet
# Defaults to
PUBLIC_BLOCKCHAIN='gnosis'

CLI

There is a built-in command line tool for making development easier.

Run it with this command:

pnpm cli <command> [arguments]

Currently the following commands are available:

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.