Open a new shell and then install node using nvm: nvm install --lts
Setup awe:
# clone the awe repository:
git clone https://github.com/happybeing/awe
# install node dependencies
cd awe
npm install
To be able to connect to the network add the following environment variables (these values will change after the beta network reset). Also, be aware that if you run awe with a local testnet you will need to unset them.
in the awe project directory, run awe with the ‘local discovery’ feature: cargo tauri dev -- --features=local-discovery --
to upload a website to the testnet use: cargo tauri dev -- --features=local-discovery -- publish --website-root <WEBSITE-DIRECTORY>
I have a bunch of aliases and scripts for setting up initial websites and test pages on a local testnet or the public beta, so if you want to do a bit more than play, get in touch.
Hey, I got this building on a M1 Mac after having some issues with the default target setting. I changed the target setting in config.toml from x86_64-unknown-linux-gnu to aarch64-apple-darwin, and that was it.
All the install pre-requisites worked well, although I’d suggesting changing ~/.bashrc to ~/.zshrc in step 2 - zsh is the default these days.
One thing I forgot is that when building you need also to set some environment variables. Without that I think it won’t connect to the network. So you will need also to set the following values (which will change after a beta network reset):
That’s a bug in the Autonomi APIs - if you send me your wallet address I will send you some nanos and you will be able to view things - which at the moment you can’t do with an empty wallet!
If you want to upload a web page or website let me know and I can send you some nanos for that too. You can use the awe ‘estimate’ command to work out how much you need.
ah ok, no need to send nanos, I was just curious to know if I was able to view a site. btw, if you need any mac os (or unbuntu) testing in future then feel free to give me a shout!
I’m working on it! I encountered a couple of issues during the brew install, but I’m pushing through to finish the initial setup. Here’s a bit about my journey:
When I ran xcode-select --install, I received a message saying that the package was already installed and that to update it, I would need to do so through my main Mac settings, likely referring to macOS updates. After that, everything went pretty smoothly. I followed brew’s recommendations to link the environment path file to run commands from the CLI. The brew installation itself went smoothly, and at the end, it also provided some instructions to replicate what brew recommends during the rust installation to enable command execution from my current terminal. I restarted my terminal window as suggested.
Running cargo install tauri-cli --version "^2.0.0-rc" went without issues. I installed the nvm package, but initially faced an issue running brew. I opened another terminal, added the path to my env profile, and then successfully installed nvm. The awe installation went smoothly—no issues with either the git awe or the npm install. I copied all the environment variables into a single code block and pasted them into my terminal—no issues so far. For reference, I’m using a MacBook Pro M1, and unlike my friend Graham, my profile is located at ~/.zshenv.
I ran a test, and the awe browser launched. I opened another terminal to run the build. Always remember to switch to a new terminal after any new installation; otherwise, you might encounter errors. I ran the build, and my Mac prompted a warning. I allowed it, and an awe image appeared, which I dragged into my applications—so exciting!
I’ll pause here because I think I need to contact you to proceed to the next stage. I hope this journey helps anyone else running a Mac. I’ll be around if anyone needs anything. Graham did an amazing job debugging the initial errors—without that, I’d probably be banging my head against the door, lol. I’m really excited to be part of this project, so I’m here to help and play around!
Before heading to bed, I wanted to share something important about MacOS shells that I’ve been struggling with. The issue lies in the terminal you’re using. I noticed a difference between Graham’s configuration ~/.zshrc and mine ~/.zshenv. The key difference is that every time I close my terminal, the paths from ~/.zshenv get overwritten by the system, while ~/.zshrc is only loaded for interactive shell sessions. The recommended approach is to use ~/.zprofile instead of both. This is actually where brew suggests placing environment variables.
Once I figured this out, I was able to open and close my terminal sessions and test a couple of AWE websites without any issues. Time to go to bed… Have fun! I sure did! Oh, and I also manually changed my terminal settings. Under General, I switched from the default login shell to command complete for path and chose /bin/zsh. Hopefully, this helps anyone facing similar issues.
Thanks to both of you for trying this out and sharing what you are learning.
@makkomaster if you have time, any changes to the OP you can make would be good to help others coming after you, such as where to put environment variables and so on. You can edit it yourself because I made it a Wiki.
Would either of you be willing to create a build and host it somewhere so others don’t have to build? I can do this myself for Linux and Windows (although awe doesn’t work on Windows yet), but I don’t have access to a Mac.
I think (!) you should be able to create and release binaries for all OSes by using a build in a github action without building/hosting yourself and having a single place where all the builds then are being released
Last time I checked it was free for a python release chain
I’m sure that possible and have done something like that before, though I don’t recall what?!
But it was a pain so I’m not spending time on that even if it’s free. I also want to remain as independent as I can from those services rather than get more dependent on them.
One day I hope my repo will be on Autonomi.
In the short term I’d be fine if somebody else wants to set that up and manage it though.
I didn’t get round to having a look at compiling on a Mac and it’s just as well others beat me to it as I’d have been floundering. But just remembered something: AWS has Mac Instances now! https://aws.amazon.com/ec2/instance-types/mac/
So that might have been an option for this or something later.
I’m working on creating a detailed step-by-step tutorial that’s designed to be as straightforward as possible, complete with screenshots for each step and the corresponding output. My goal is to make the process clear and easy to follow, even for those who might not have much experience.
I’ve been running multiple tests to ensure that every step in the guide works perfectly, and so far, everything is functioning smoothly. I’m now in the process of building out the final version, confident that this guide will be a reliable resource for anyone who follows it.
Thank you for your patience, and I’m excited to share this with you soon!
Hi Graham,
I’m encountering an issue every time I run awe commands.
Error running awe command:
zsh: command not found: awe
I suspect it might be an issue with the profile paths, but I’m stuck in a loop trying to figure it out. Could you please share how your ~/.zshrc profile looks? Any help would be greatly appreciated.