Skip to main content

# cectf-server

You need Python 3 and pip installed to set up this project.

Navigate to the project repository and run ./setup_workspace.sh. This will set up the python virtual environment and install the python dependencies.

You will need to install MariaDB (https://mariadb.com/downloads/#aptyum) and have it running on localhost. For testing purposes, the user travis with no password needs to be created (CREATE USER ‘travis’@’localhost’ IDENTIFIED BY ‘’;)

Run db_setup.sh to set up the test database with dummy data. Right now this provisions a user a with password b, and an admin user abc with password 123. You will need to use these credentials to log in to the app.

Run run.sh to launch the Flask server. It is configured to run the server on http://127.0.0.1:5001 by default.

Configuration can be done by adding variables to instance/config.py.

For testing, first do pip install pytest coverage. Run pip install -e . to install the project in the local virtual environment (the -e ensures that it is updated as the project is modified). Run pytest to run all tests. Run coverage run -m pytest to generate a code coverage report. Run coverage report to get the report in the command line, or run coverage html to generate an interactive HTML page in htmlcov/index.html.

Metadata

Release files for cectf-server 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cectf-server 1.0.10
File Size Uploaded
cectf-server-1.0.10.tar.gz 6.1 kB Details

Release files / cectf-server-1.0.10.tar.gz

Download URL cectf-server-1.0.10.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1f525a9f41c3c9267e8ce2573deffede499b0425cc1e8bb7f81202eb0019304e
BLAKE2b-256 checksum
How to use checksums
efb182e9b2e17cc0a0a38fa77ea941f07a411e68ea1909436ae50e46ec629857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

Release history Release notifications | RSS feed

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.15

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

1 release file

1.0.11

1 release file

This release

1.0.10 This release

1 release file

1.0.9

1 release file

1.0.8

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page