aertslab / SCope

Fast visualization tool for large-scale and high dimensional single-cell data
GNU General Public License v3.0
68 stars 15 forks source link

Fastapi organisation template #419

Closed MaybeJustJames closed 3 years ago

MaybeJustJames commented 3 years ago

This introduces no-op functionality into the existing SCope application. No "wiring up" has been done.

Users are identified by an integer that the client must store in a Cookie. Projects have 2 alternative identifiers: an integer and a uuid-v4. Both of these are generated on the server. Each project stores its size and creation date so that a cron job can clean up as necessary. This means that clients no longer need to poll the server.

To run the server in development configuration simply run the ./run-dev-env.sh script. Note that the --reload option has been removed because it interacts badly with the legacy server. Until the legacy server is removed you will need to manually kill and restart the development server when you modify the code.

MaybeJustJames commented 3 years ago

Great work! Would be nice to have kinda dev README.md

Added. Also added a Postman collection

MaybeJustJames commented 3 years ago

I started to change "Project" to "Collection" when I realised that the name "Project" also works just as well for an "ad-hoc" collection of datasets as "Collection" does. It's just the concept that changes, rather than a "Project" being a rigid wall around a set of datasets its just an ad-hoc collection that can be.