/cne350-midterm

🐍 a minimal RESTful web application powered by Flask and MariaDB

Primary LanguagePython

CNE350 RESTful Database Access

a minimal RESTful web application powered by Flask and MariaDB

🧰 Setup

Click to view environment setup (optional)

This repo uses Python and was scaffolded using uv, a Rust-based package manager. Use one of the following to install it on your machine:

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Docker is also required to run the associated backend services. Setup instructions can be found here.

  1. Create a new local virtual environment:

    uv venv
  2. Activate virtual environment (on Linux):

    source .venv/bin/activate
  3. Install project dependencies:

    uv pip install -r requirements.txt
  4. Deploy containers:

    docker-compose up -d
  5. And serve!

    flask run

The Flask server is now running at http://localhost:5000 and the Database can be accessed directly via PHPMyAdmin at http://localhost:8080. The default username/password is root/changeme.