GUN: Create a Decentralized Chat App with GUN and IPFS
Learn how to create a decentralized chat app with GUN and IPFS.
What is GUN?
1. First, we need a Filebase IPFS bucket.
2. Select ‘Buckets’ from the left sidebar menu, or navigate to console.filebase.com/buckets.

3. Enter a bucket name and choose the IPFS storage network to create the bucket.

4. Next, download and install S3FS-FUSE on a Linux or macOS system.
5. Set up an Access Key file for use with S3FS-FUSE.
6. Mount your bucket.
7. Now, navigate into the mounted Filebase bucket.
8. Then, clone the Github repo for the Gun decentralized chat app:
9. Next, install the project’s dependencies:
10. Run the app with the command:
11. Navigate to localhost:5000. Your app will appear and look like this:
localhost:5000. Your app will appear and look like this:
12. Enter a username and password, then select ‘Sign up’.

13. Open another browser tab at localhost:5000, and create another user with a different name and password, then select ‘Sign up’ again.
localhost:5000, and create another user with a different name and password, then select ‘Sign up’ again.

Last updated