AUBGTheHUB / monolith

The Hub AUBG's mono repo
MIT License
9 stars 4 forks source link
spa website

@AUBGTheHUB's Monolith

Python API Tests

Notify Discord - New Issue

Notify Discord - New PR

> How to set up the project

Prerequisites

To understand why we need the following, read more about Dev Containers.

After running the above commands. Close PowerShell.

You should be all set 🎉

1. Add your SSH key to the ssh-agent and GitHub

Here is the guide:

2. Clone the repository to your machine

git clone git@github.com:AUBGTheHUB/monolith.git

3. Navigate to the project directory

cd monolith

Extra Step: For WSL users

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


4. Open your project in Visual Studio code. Run:

code .

5. Navigate to Visual Studio Code and perform:

After this step you should wait until the container is built. It will install all the dependencies needed for development on its own.

6. Check if Dev Container is running successfully

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.


HOW TO RUN THE PROJECT:

Run the following command after navigating to the project root directory

make gum

Spin up local server instances:

Directory structure

.
└── services
    ├── py-api
    ├── questionnaire
    ├── react-email-starter
    ├── url_shortener
    └── web

How to work on a feature and open a Pull Request?

  1. Choose an issue you want to work on (e.g. #11 - Optimizations)
  2. Create a new branch by running the following command:
    git checkout -b "11-specific-optimizations"
  3. 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"
  4. Push your updates to the remote branch
    git push --set-upstream origin 11-Optimizations
  5. 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

Important:

Possible problems:

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

Tips & Tricks:


CODEOWNERS: NOSYNCDEV

After you are done working on a feature, you may add yourself to the CODEOWNERS file.