From 7c25d052d2f09a12d34db273431f902a704b468b Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Thu, 25 Aug 2022 12:56:00 +0900 Subject: [PATCH] just human things (#7) Expand README.md, add CONTRIBUTING.md, rename LICENSE to standard name --- CONTRIBUTING.md | 36 ++++++++++++++++++++++++++++++++++++ LICENSE.md => LICENSE | 0 README.md | 8 ++++++++ 3 files changed, 44 insertions(+) create mode 100644 CONTRIBUTING.md rename LICENSE.md => LICENSE (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..6ec1ae6 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,36 @@ +# Contributing + +## Dependencies +- Python >=3.9 +- [Poetry](https://python-poetry.org/docs/master/#installing-with-the-official-installer) + +## Setup +* Install Python dependencies with poetry +```shell +poetry install +``` + +- Set up the database +```shell +poetry run python manage.py migrate +``` + +- Start the API server +```shell +poetry run python manage.py runserver +``` + +### Updating the database + +If you modify any database models (`models.py`), you'll need to run the following to update the database: +```shell +poetry run python manage.py makemigrations +poetry run python manage.py migrate +``` + +### Linting + +```shell +poetry run mypy +poetry run black . +``` diff --git a/LICENSE.md b/LICENSE similarity index 100% rename from LICENSE.md rename to LICENSE diff --git a/README.md b/README.md index d6b33c1..e072a26 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Frogress An API for storing/retrieving decompilation progress + +## Development +For those interested in contributing to frogress's development, please see [CONTRIBUTING.md](CONTRIBUTING.md). + +## Usage +The API will be hosted at https://progress.deco.mp. Usage guide coming soon. + +TODO: add example curl commands as well as code snippets / CSV parser for existing format \ No newline at end of file