Go to file
Leonora Tindall 6d7fa271a0
Make README more friendly
2019-09-26 17:52:17 -05:00
database Add database connection handling with dummy usage 2019-09-09 17:03:34 -05:00
webserver Create basic database schema, and creation script 2019-09-09 17:43:55 -05:00
.gitignore Create basic template for Hello, World app 2019-09-09 10:55:34 -05:00
COPYING Create basic template for Hello, World app 2019-09-09 10:55:34 -05:00
README.md Make README more friendly 2019-09-26 17:52:17 -05:00
docker-compose.yaml Create basic template for Hello, World app 2019-09-09 10:55:34 -05:00

README.md

CodePage

CodePage is a code-sharing website curated by the community and built with open source technologies.

Architecture

CodePage is built with Flask and uses PostgreSQL as its database backend. In this repository, there is a docker-compose.yml file specifying two containers, database and webserver.

If you want to install Postgres and Python on your local machine that is fine too. Just change the relevant configuration in the webserver directory to point to your Postgres instance and install the same packages that are installed by the webserver Dockerfile.

Setup

Build the Docker containers with docker-compose build Create the database schema docker-compose exec webserver python src/makedb.py