/README.md (7dcf242a339081ab4c71cde50af7195a3eb26843) (1710 bytes) (mode 100644) (type blob)

# datajams-evictions

## Software Needed
* [node.js:](https://nodejs.org). This is known to run in version 10.x. Higher versions may work.
* **npm** : should be included in the download above.

Local data storage is in [SQLITE3](https://sqlite.org). You should only need to download software if you want to independently access the database.

Remote data storage is (currently) in MS SQL Server on Azure. You will need the **mssql** javascript package from npm to connect.

## How to Use
1. Download node.js as above.
1. run `npm install` to pull in the dependencies.
1. copy "creds.example.js" to "creds.js" and edit it to put in your remote database credentials.
1. initialize your local SQLITE3 database
	1. if you have install SQLITE3 as above: `sqlite3 eviction-data.sq3 < schema.sqlite.sql`
	   * otherwise, someone could make a script like `node initSqliteDB`
1. run 
	1. `node loadDockets` to load in docket information to a local SQLITE3 database
	1. `node updateStatus` to update the status of each of the cases in the database
	1. `node updateAddress` to update 10 cases to get party addresses. 
	   * Note: It seems you can do this about once a minute. Any faster and they seem to lock you out.
	1. `node searchNames 'NAME'` to load in cases where NAME is a party
	   * Note: the quotes are really helpful especially if NAME has a space in it, such as '2015 HOUSTON'
1. Transfer data **to Azure**: `node xferData`
    * **NOTE WELL** Don't do this. It will erase all the data up at Azure and replace it with the data from your local SQLITE3 database.
    * You probably don't have as much data as I do.
    * Maybe someone could make a script like `node pullData` to grab data from Azure to local.


Mode Type Size Ref File
100644 blob 31 ce60eb947708d4530bee8739c111f9c0ab750eaa .gitignore
100644 blob 33877 e37e32e4e836c2394b62c0a848c2094f687eb530 LICENSE
100644 blob 1171 354a297411cdddbe0355507766510a182aba0874 Promise.shim.js
100644 blob 1710 7dcf242a339081ab4c71cde50af7195a3eb26843 README.md
100644 blob 364 c97984072c2cd4c8daa74c3e6ff6eb0434dc5d72 creds.example.js
100644 blob 1410 bc1777db47110f7e7bfdfee7895204fbfa0f68ba extractFile.js
100644 blob 2009 530f6b3bddfca745b628f7a4a226796d17a18605 extractMonth.js
040000 tree - 446eab412997373a9912a19eb8248a50457917da lib
100644 blob 3387 d9081a5bae4b71e3a4f932769caef902f079fa20 loadDockets.js
100644 blob 49735 4e6be3f3100b172d1571d6ddf21eeabe70876b5c package-lock.json
100644 blob 626 129b1f2d2524cefe2b3ab9aa4eacae3ad9748089 package.json
100644 blob 4159 888ba8ce11fdf4d3e1d197ef755e74ee1e7af1d9 schema.mssql.sql
100644 blob 3367 a05db9482fe6f9fc3c2f275d697543332b3d4a0d schema.sqlite3.sql
100644 blob 2349 334eca19c709741ee6a386fe4c9527c3ac1b0b4d searchNames.js
100755 blob 162 7c25a482064c9580388f09c4d91683f3858ff7ca sqdump
100644 blob 2779 8e0bfad2a57a7873bc1ef62b9f40cd41bdc7b636 updateAddress.js
100644 blob 3915 77c7694889dcc3c422bff5c1ebc15ccd0c366e4c updateDates.ms.sql
100644 blob 3663 af9d94ba2bf7fbaf736c02e433b89248f3fbad13 updateDates.sqlite.sql
100644 blob 2416 99b21aa86e56024cc770a95a8a1128aecd515422 updateStatus.js
100644 blob 6799 dba4385e740197b0fe1e19c89a39052ab799bdb0 xferData.js
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/datajams-lbai/datajams-evictions

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/datajams-lbai/datajams-evictions

Clone this repository using git:
git clone git://git.rocketgit.com/user/datajams-lbai/datajams-evictions

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main