Watcher for NodeJS
Learn how to configure Watcher for NodeJS for use with Filebase.
What are Watchers for NodeJS?
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. Next, install the following packages:
8. Next, create the following directory structure:

9. In the services directory, create a new file called observer.js.
observer.js.10. Then, create a new file called server.js that contains the following code:
server.js that contains the following code:11. Then, in the project’s root directory, run the following command:
12. Now, move a folder or file into your mounted Filebase bucket directory.
Last updated