- Enable WSL and virtual machines (via "Turn Windows features on or off")
- Open "Turn Windows features on or off" from the control panel
- Select "Windows Subsystem for Linux" and "Virtual Machine Platform"
- Windows will prompt you to restart your system to enable these.
- Install "Ubuntu" app
- Open "Microsoft Store", search for and install the app "Ubuntu"
- Optional: install Windows Terminal from the Microsoft Store as well
- Check whether you are on WSL 2: open a Windows PowerShell or Terminal as Admin and enter
wsl --list --verbose
. If your system is on WSL 1, try the upgrade commandwsl --set-version Ubuntu 2
. You may need to take additional steps to enable WSL 2, such as installing a kernel upgrade and enabling virtualization in your BIOS. See Microsoft WSL installation guide
- Launch the Ubuntu app, which opens an Ubuntu terminal, and then:
- Create your Ubuntu username and password (if this is the first time using the Ubuntu system)
- Add the RVM repo so you can install Ruby:
sudo apt-add-repository -y ppa:rael-gc/rvm
- Install RVM:
sudo apt install rvm
- Add your user to the rvm group:
sudo usermod -a -G rvm [your username]
- Close and reopen the Ubuntu terminal to activate RVM
- Get the Dashboard code and install Ruby and other prerequisites.
- If you haven't done so already, fork this repo, see GitHub Forking Documentation
- From Ubuntu terminal, clone your forked repo by replacing the URL in this command:
git clone https://github.com/{your-github-username}/WikiEducationFoundation/WikiEduDashboard.git
. For performance, it's important to install this in the WSL filesystem (cd ~
). - Enter the Dashboard directory, then attempt to install the Dashboard's current Ruby version (updating the version number in this command if necessary):
rvm install 3.1.2
. - Update system packages:
sudo apt-get update
- Install MariaDB:
sudo apt-get install -y mariadb-server libmariadb-dev
- Start the database:
sudo /etc/init.d/mariadb start
- The rest of the installation process should work the same way as a normal Linux installation, and the setup script can automate most of it. Run setup script:
python3 setup.py
. If it fails, refer to the manual setup procedures insetup.md
to continue. - Build the assets:
yarn build
- Run
rails s
. Now you should have a development running and accessible via web browser at localhost:3000.
For troubleshooting, look at the end of the document: Troubleshooting
If this doesn't work smoothly, please let the maintainers know about what went wrong (and what you did to work around the problem, if you found one).