To understand why we need the following, read more about Dev Containers.
- Download Docker Desktop.
- Download Visual Studio Code.
- Install the Dev Containers Extension in Visual Studio Code.
Run the following commands in PowerShell admin mode.
- Check the version of your WSL.
wsl -l -v
- If you don't have WSL version 2. Run:
wsl --set-version <distro name> 2
Change the to match the one that you are running. You could see your distro name from the result of the previous command.
- After your WSL version is updated set it as default by running:
wsl --set-default-version 2
- Set the chosen distro as default
wsl --set-default <distro name>
- Close WSL and reopen it
After running the above commands. Close PowerShell.
- Open Docker Desktop
- Navigate to Settings
- From the General tab, select Use WSL 2 based engine
You should be all set π
Here is the guide:
git clone git@github.com:AUBGTheHUB/monolith.git
cd monolith
In order to make sure that your WSL SSH keys are forwarded to the DEV Container you should run the following script:
bash wsl_ssh_forwarding.sh
Learn More about how this is done
code .
- command + shift + P (Mac) or ctrl + shift + P (Windows) to open the command palette
- In the command palette write and select:
>Dev Containers: Reopen in Container
After this step you should wait until the container is built. It will install all the dependencies needed for development on its own.
If your Dev Container is running successfully you should be able to see the following in the bottom-right of your Visual Studio Code client.
Run the following command after navigating to the project root directory
make gum
Spin up local server instances:
.
βββ services
βββ py-api
βββ questionnaire
βββ react-email-starter
βββ url_shortener
βββ web
- Choose an issue you want to work on (e.g. #11 - Optimizations)
- Create a new branch by running the following command:
git checkout -b "11-specific-optimizations"
- When commiting, place the issue number at the beginning of the commit message
git add . # be careful if something important is not gitignored
git commit -m "#11 Added a new feature"
- Push your updates to the remote branch
git push --set-upstream origin 11-Optimizations
- Contribute π (Open a Pull Request towards the main branch)
- Reference the issue in the title
- Write a brief discription of what you have worked on
- If you encounter any issues setting up the project, ping the team in Discord or Messenger
- If you are stuck and you need help, ping the dev group chat in facebook π€Ό
- Do not forget to crack open a cold one π» with your fellow colleagues after spending countless hours debugging rendering issues π
MONGO DNS issue:
make run-api
cd ./packages/api/ && go run main.go
2022/10/03 01:57:24 error parsing uri: lookup thehubwebsite.h9aqj.mongodb.net on 192.168.68.1:53: cannot unmarshal DNS message
exit status 1
make: *** [Makefile:11: run-api] Error 1
--> resolve by doing this
- If you suspend either the react app job or the api job by mistake and cannot kill the job for some reason, use this to unbind the port
lsof -ti:PortNumberGoesHere | xargs kill -9
CODEOWNERS: NOSYNCDEV
After you are done working on a feature, you may add yourself to the CODEOWNERS
file.