-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Aaron shiel edited this page Jun 28, 2021
·
4 revisions
Welcome to the mentor-admin wiki!
- Install WSL 2 on windows (Ubuntu): https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps
- Install node.js in ubuntu (version 14.17): https://github.com/nodesource/distributions/blob/master/README.md#debinstall
- Confirm successful node install: $ node --version
- Install Docker in ubuntu: https://docs.docker.com/docker-for-windows/wsl/
- Install docker-compose in ubuntu: https://docs.docker.com/compose/install/
- Update C:\Windows\System32\drivers\etc\hosts to contain "127.0.0.1 local.mentorpal.org" (no quotations)
- Download and install Visual Studio Code: https://code.visualstudio.com/
- Within visual studio, find the extensions tab in the left toolbar and search for and install "Remote - WSL"
- Within your WSL terminal (e.g. ubuntu) clone the mentor-admin repository: https://github.com/mentorpal/mentor-admin.git
- You can view/edit code inside visual studio by executing this command from the mentor-admin root directory: $ code .
After making changes to the repository and you would like to view/test your changes in the integrated app:
- Clone the mentorpal beanstalk app: https://github.com/mentorpal/mentorpal.org-beanstalk-app
- Open the beanstalk app in visual studio and within docker-compose.yml, look under "services" to find "admin", change the value for "image" from "uscictdocker/mentor-admin:x.y.z" to "mentor-admin:latest"
- Startup a docker daemon and leave it running (in its own terminal): $ sudo dockerd
- Build a new mentor-admin docker image (run this from the mentor-admin root directory): $ sudo make docker-build
- This command may take a few minutes to finish, and must finish before moving on
- In the beanstalk repo root, run: $ sudo make run
- This command may take a few minutes to finish, and must finish before moving on
- Open your preferred web browser and go to "local.mentorpal.org/admin"