To understand why we need the following, read more about Dev Containers.
Run the following commands in PowerShell admin mode.
wsl -l -v
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.
wsl --set-default-version 2
wsl --set-default <distro name>
After running the above commands. Close PowerShell.
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 .
>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
git checkout -b "11-specific-optimizations"
git add . # be careful if something important is not gitignored
git commit -m "#11 Added a new feature"
git push --set-upstream origin 11-Optimizations
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
lsof -ti:PortNumberGoesHere | xargs kill -9
After you are done working on a feature, you may add yourself to the CODEOWNERS
file.