aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
blob: 9c15148509d9c25d1c89231b43a95f7ed7397488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributing

To contribute you need to have [git](https://git-scm.com/) and [UV](https://docs.astral.sh/uv/) setup.

## Setup

Set up the repository via a git clone and setup a new branch using the following commands:

```bash
git clone git@gitlab.com:KaranJayachandra/match_up.git
cd match_up
git checkout develop
git branch <branch-name>
git checkout <branch-name>
```

Now we can install the dependencies using:

```bash
uv sync
```

A database URI needs to be added to let the application know where to create a test database by creating a `.flaskenv` file in the root directory containing the variable `SQLALCHEMY_DATABASE_URI=sqlite:///app.db`. Now, we need to initialize a database for testing via the following commands:

```bash
uv run flask init
uv run flask migrate
```

We are now ready to run the flask application using:

```bash
uv run flask run
```