Skip to content

Commit

Permalink
Merge branch 'develop' into ponnia/fix-CI-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponnia-M authored Dec 9, 2024
2 parents 0210543 + 040ee76 commit 0b6c9cb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions domain-cc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ However, for a more speedy, lightweight setup, you can run the FastAPI server in

## FastAPI Setup
Install Python3.10
If you're on a mac, you can use pyenv to handle multiple python versions
Mac Users: you can use pyenv to handle multiple python versions
```
brew install pyenv
pyenv install python3.10
pyenv global python3.10 # or don't do this if you want a different version available globally for your system
pyenv install 3.10 #Installs latest version of python 3.10
pyenv global 3.10 # or don't do this if you want a different version available globally for your system, set locally to use python in current folder.
```

Create a virtual env
Expand All @@ -27,6 +27,13 @@ which python3
# /Users/<your_username>/.virtualenvs/domain-cc/bin/python
```

Mac Users: If python path hasn't been setup, you can put the following in your ~/.zshrc
```
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/shims:$PATH"
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi” #Initalize pyenv in current shell session
```

Navigate to `src` directory, install dependencies, and run webserver
```
cd cc-app/src
Expand Down Expand Up @@ -57,7 +64,7 @@ pytest
```
source ~/.virtualenvs/domain-cc/bin/activate
pip install -r dev-requirements.txt
# MAKE SURE you are in adb-vro/domain-cc to get the right pre-commit-config.yaml installed
# MAKE SURE you are in abd-vro/domain-cc to get the right pre-commit-config.yaml installed
pre-commit install
```

Expand Down

0 comments on commit 0b6c9cb

Please sign in to comment.