- Clone backend repo (https://github.com/wikimedia/toolhunt)
- Initialize Poetry in the local root directory
- Install dependencies
- Copy basic folder structures from https://github.com/blancadesal/flask-blueprint
- Containerize the app using the multi-stage process outlined by Slavina
- Spin up a separate container for MariaDB
- Get it to actually work
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | NicoleLBee | T324507 Develop a web app for editing Toolhub records | |||
| Resolved | NicoleLBee | T327077 [backend] Carry out initial project setup for the backend | |||
| Resolved | NicoleLBee | T327078 [backend] Choose base python image for the Docker container | |||
| Resolved | NicoleLBee | T327081 [backend] Investigate API support options | |||
| Resolved | NicoleLBee | T327389 Create a MariaDB container and incorporate it into the existing project |
Event Timeline
Comment Actions
I've initialized Poetry in the project and used it to install Flask, added a Dockerfile and a docker-compose file so that the project can be spun up in a container, and enabled hot reloads.
Still to do:
- copy the file structure from our blueprint project and do some basic refactoring (DONE)
- install additional dependencies (there may be a delay on this; see T327081)
- containerize an instance of MariaDB and link the containers
Branch on GitHub: https://github.com/wikimedia/toolhunt/tree/initialize_via_poetry
Pull request: https://github.com/wikimedia/toolhunt/pull/4
Comment Actions
I've added project dependencies and opened two pull requests.
- Add MariaDB container build and related dependencies (SQLAlchemy, Flask-SQLAlchemy, flask-migrate, mysqlclient)
- Add Flask-Smorest and a simple set of routes for testing, with a related schema, blueprint and model.
Although things still aren't quite working, I'm getting closer.