-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2231283
commit 71e470d
Showing
12 changed files
with
181 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apps.deed.models.py | ||
=================== | ||
.. automodule:: apps.deed.models | ||
:members: | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Components | ||
========== | ||
|
||
Standalone deed uploader | ||
------------------------ | ||
|
||
Often deed images are stored on a local machine or network drive, and it's not feasible or efficient to move them. This standalone uploader is designed to avoid the user having to do a full install on this computer. | ||
|
||
- `mp-upload-deed-images-standalone <https://github.com/UMNLibraries/mp-upload-deed-images-standalone>`_ | ||
|
||
Lambda functions used for OCR step machine | ||
------------------------------------------ | ||
|
||
The individual lambda functions that make up the OCR, term search and web image optimization processes are in separate repositories: | ||
|
||
- `mp-covenants-split-pages <https://github.com/UMNLibraries/mp-covenants-split-pages>`_ | ||
- `mp-covenants-ocr-page <https://github.com/UMNLibraries/mp-covenants-ocr-page>`_ | ||
- `mp-covenants-term-search-basic <https://github.com/UMNLibraries/mp-covenants-term-search-basic>`_ | ||
- `mp-covenants-resize-image <https://github.com/UMNLibraries/mp-covenants-resize-image>`_ | ||
- `mp-covenants-fake-ocr <https://github.com/UMNLibraries/mp-covenants-fake-ocr>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Development | ||
=========== | ||
|
||
If you would like to help with Deed Machine software development, including helping with additional documentation, please contact `Michael Corey <https://github.com/mikejcorey>`_ at `Mapping Prejudice <https://mappingprejudice.umn.edu/>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Funding | ||
======= | ||
|
||
TK TK TK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Installation | ||
============ | ||
|
||
Django installation process | ||
--------------------------- | ||
|
||
1. Create a PostGIS-enabled database for the project | ||
The psql command will vary slightly with different OSes. For Mac: | ||
|
||
.. code-block:: bash | ||
psql -d postgres | ||
CREATE DATABASE racial_covenants_processor; | ||
CREATE USER racial_covenants_processor with password 'racial_covenants_processor'; | ||
GRANT ALL PRIVILEGES ON DATABASE racial_covenants_processor to racial_covenants_processor; | ||
ALTER DATABASE racial_covenants_processor OWNER TO racial_covenants_processor; | ||
\q | ||
psql -d racial_covenants_processor | ||
CREATE EXTENSION postgis; | ||
2. Install Python environment | ||
|
||
.. code-block:: bash | ||
pipenv install | ||
3. Create a Postgresql service to connect between Django and the DB called ``.pg_service.conf`` | ||
|
||
.. code-block:: | ||
[deeds_service] | ||
host=localhost | ||
user=racial_covenants_processor | ||
dbname=racial_covenants_processor | ||
port=5432 | ||
4. Sync Django with your database | ||
|
||
.. code-block:: bash | ||
pipenv shell | ||
python manage.py migrate | ||
5. To be able to view the admin pages, create a superuser | ||
|
||
.. code-block:: bash | ||
python manage.py createsuperuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.. |date| date:: | ||
|
||
License | ||
======= | ||
|
||
Deed Machine software | ||
--------------------- | ||
|
||
MIT License | ||
|
||
Copyright © 2024 Regents of the University of Minnesota | ||
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
Racial covenants data | ||
--------------------- | ||
|
||
Covenants data produced by the Deed Machine and published by Mapping Prejudice is released under a CCO license. | ||
|
||
See `U.S. racial covenants data <https://github.com/UMNLibraries/mp-us-racial-covenants>`_ repository. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Requirements | ||
============ | ||
|
||
The Deed Machine uses a combination of Amazon Web Services (AWS), Django, and standalone Python components. | ||
|
||
AWS services used | ||
----------------- | ||
|
||
- S3 | ||
- Lambda | ||
- Step Functions | ||
- Textract | ||
- RDS | ||
- ECL/ECS | ||
- EC2 | ||
- AWS sam (for lambda deployment) | ||
|
||
Django software requirements | ||
---------------------------- | ||
|
||
In addition to the Python requirements listed in the Pipfile, to run the Deed Machine's Django components locally, you will need: | ||
|
||
- geos and gdal | ||
- proj | ||
- geopandas (Python, but can require persnickety configuratino) | ||
- pyenv | ||
- pipenv | ||
- PostgreSQL/PostGIS | ||
- libmagic (mostly to silence panoptes/zooniverse warnings) | ||
|
||
In order to deploy Django components to production, you will additionally need: | ||
|
||
- Docker | ||
- AWS CLI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Support | ||
======= | ||
|
||
Do to the early phase of work and high demand, at this time, we are only able to provided technical support on a limited basis as time allows. Please contact `Michael Corey <https://github.com/mikejcorey>`_ at `Mapping Prejudice <https://mappingprejudice.umn.edu/>`_. |