- Python 3.10 or higher.
- pip
foo@bar:~$ git clone https://github.com/SnapperVibes/SnapNForce.git
SnapNForce manages dependencies and virtual environments using Poetry. You can install Poetry using pip.
foo@bar:~$ pip install poetry
foo@bar:~$ poetry --version
Poetry version 1.1.13
By default, Poetry stores created virtual environments in a hidden folder. My personal preference is to have the environment created within the current directory. This way deleting environments is as easy as deleting the .venv folder. You can tell Poetry to create the virtual environments in the project using
foo@bar:~$ poetry config virtualenvs.in-project true
foo@bar:~$ cd SnapNForce
foo@bar:~/SnapNForce$ poetry install
You should notice that a directory named ".venv" was created.
foo@bar:~/SnapNForce$ poetry shell
(.venv) foo@bar:~/SnapNForce$
You'll know you are in the virtual environment when the console's prompt is prefixed with (.venv)
SnapNForce uses the user sylvia
.
Set sylvia's login details in the .pgpass password file.
(.venv) foo@bar:~/SnapNForce$ python main.py
INFO: Started server process [8226]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)