Brave Setup
Currently, I am working on a Windows OS so this blog is how to setup Brave specifically on Windows. Here is the link to the Brave’s instructions for other OS’s. This the link to the official Windows build guide that I am going to use.
Installing the prerequisites
First, I made sure that I have all the prerequisites installed. Let’s see what’s required:
- Git
- node.js
- C++ Compilers
- OpenSSL
- Python 2.7
- Environment variables
node.js
I already have Git installed, so let’s check what is required for node.js.
I went to the node.js website and as for today, the current version is 9.4.0.
I used node.js before, so I know I have it installed, but let’s check the version I have. To check the node version do the following:
I have the current version, so I will just move on to the next step:
C++ Compilers
After completing the above, I moved on to the C++ Compilers section where I had an option to either install Visual Studio IDE or standalone C++ tools. Since I already have an experience working with Visual Studio, I have decided to try standalone C++.
According to the setup instructions we are required to install 2015 version so I just clicked on Download button. And so, the download begins:
Clicked on Run.
I chose the default option, in case I will need some additional features I will add them later on.
Done!
OpenSSL
Some info about OpenSSL here.
Done!
Python 2.7
Sorry, I don’t have any screenshots of Python installation, but it’s very straightforward just follow this.
Environment Variables
According to Computer Hope:
An environment variable is a dynamic “object” on a computer that stores a value, which in turn can be referenced by one or more software programs in Windows. Environment variables help programs know what directory to install files in, where to store temporary files, where to find user profile settings and other things. It can be said that environment variables help to create and shape the environment of where a program runs.
Environment variables are dynamic because they can change. The values they store can be changed to match the current computer system’s setup and design (environment). They can also differ between computer systems because each computer can have a different setup and design (environment).
The above is what I need to do. Brave shares a link with instructions on how to create the system variables & change the system PATH variable.
The following is a combination of my own way & instructions:
Right-click on the window icon ( the very bottom left corner ). After the click I saw the following:
Then I clicked on settings:
Once I got here, I searched for environmental variables:
Then I selected Edit the system environment variables, which opened the system properties window for me:
Let’s click on the Environment Variables, which opens the window for us with info about User variables & system variables:
Back to the instructions, let’s what do we need to do again:
First, create two system variables.
Second, update the PATH variable if needed.
In order to create system variable:
Click on New
The following window should pop up:
Where we write:
Then click on OK. Now we can see that new system variable was added:
To create the second system variable I followed the same steps, and as a result:
Done!
Now I will check the PATH system variable to see if there is python and nodejs:
First, let’s find PATH
Then click on Edit
I don’t have python & nodejs, so I shall add them:
Click on New
Click OK.
Done!
Getting the code
First I forked the repository:
And now, if I go to my forked repository, I can clone the project:
Let’s copy the link, and run the command in git bash:
Once you press enter key, you will see something similar to the following:
Yey!
Now we can build it!
Building
In order to build we need to run:
npm install
My build was successful!
I am seriously surprised, I don’t think I ever was so lucky that code would build successfully for the very first time!
Next step is running!
Running
To run, I need to open two windows:
Window one:
Window two:
As the result of running the above commands:
We are successfully up & running!