A global virtual community for LGBTQIA+ refugees and asylum seekers to safely connect
Dev leads will need your github username to add you as a contributor.
To get the app running on your machine, follow the commands below:
-
Fork the repository
-
Clone the forked repository onto your local machine
git clone https://github.com/< your-github-username >/virtual-communityDownload Docker Desktop for Mac or Windows. We will be using dev containers to work on this project, and this software will help facilitate the use of the container on your machine. This will ensure that the team is all working with the same development environment.
Open up VSCode and install the Dev Containers and Remote Development VSCode extensions
Once the extensions are installed, you should see this light green icon in the bottom left corner of your code editor
Click the above light green icon to reveal the following options:
Choose Reopen in Container to initialize the repository in a dev container. The container will run all of the setup and installation commands, and then start up the development server.
Open an integrated terminal Terminal -> New Terminal and you can view the config as it runs the container setup. You will see something like this:
In a separate integrated bash terminal, you should see root ➜ /workspaces/virtual-community in the terminal. This means that you are now in the container, and you can run the following command to run the database migrations:
npm run migrate:prismaThis will run the database migrations which creates the database tables, and it will seed the database using the ./src/prisma/seed.ts file.
Using a dev container, we make sure that everyone on the team is using the same working environment, and reducing errors caused by different local environments and configurations.
The container includes some pre-installed VSCode extensions, check those out, and let us know if there are any that you think the team should be using!
- Create your feature branch
git checkout -b your-name/your-feature-name dev - Commit your changes
git commit -m "commit message describing your changes" - Push your changes to your feature branch
git push origin your-name/your-feature-name - Before making a pull request, make sure your fork and branch are synced with
upstream branch that you will be making a PR against
- Make sure you
git pull upstream dev:devdaily to make sure that your local branch has the latest changes - Merge your changes into the latest up-to-date dev branch
git checkout devgit merge your-name/your-feature-name
- Make sure you
- Create a Pull Request in GitHub against the
devbranch when your feature is done - Once all changes in
devare verified, leads will mergedevtostaging - When a feature is complete, leads will merge
stagingintomain(mainshould only ever be merged to fromstaging)
Capitalized, short (50 chars or less) summary
Write your commit message in the imperative: "Fix bug" and not "Fixed bug"
or "Fixes bug." This convention matches up with commit messages generated
by commands like git merge and git revert.
Specify the type of commit!
See the github wiki for more information on writing good commit messages.



