You need to install PostgreSQL and Python. Here's how you can do it on Ubuntu Linux:
sudo apt update
sudo apt install python3.7 postgresql-10
Now now you need to install and run pipenv to create virtualenv and manage our dependencies:
pip install pipenv
pipenv --three # create a virtualenv
pipenv install --dev # install dependencies
Make sure you have .env
file setup. Then go to the terminal and type:
pipenv shell # enter the matrix
flask run # start web-server
By now you should be able to go to http://127.0.0.1:8080/ and see the application running.
To enter the database shell:
sudo su - postgres # change user
psql # enter the matrix
Make sure you have restarted pipenv's shell if you update .env
file