Page MenuHomePhabricator

[backend] Carry out initial project setup for the backend
Closed, ResolvedPublic

Description

Event Timeline

NicoleLBee renamed this task from [backend] Carry out initial project setup to [backend] Carry out initial project setup for the backend.

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

I've added project dependencies and opened two pull requests.

  1. Add MariaDB container build and related dependencies (SQLAlchemy, Flask-SQLAlchemy, flask-migrate, mysqlclient)
  1. 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.

We now have a working backend.