Complex Talk is a blogging web application prototype developed using the Flask Framework.
Within Complex Talk a user can post and read articles belonging to four different categories: Tech, Business, World and Lifestyle.
Have an active PostgreSQL server running locally.
- Create an .env file in the projects' root folder containing the following database-related variables:
HOST | PORT | DB_NAME | DB_USER | PASSWORD | DATE_FORMAT |
-
Create a .venv folder in the projects' root folder and create a virtual environment by running the command
$ virtualenv .venv
. -
Access to a local PostgreSQL server using
$ psql -U postgres
. -
Run the database_script.sql using
$ \i path\database_script.sql
once connected to the local server. -
Activate the virtual environment using
$ source .venv/bin/activate
. -
Run the
init.py
script.
References |
---|
Python virtual environments |
Psycopg 2.9.5 documentation |
Flask documentation |
Bootstrap documentation |