-
Notifications
You must be signed in to change notification settings - Fork 48
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
0 parents
commit 9f99ed1
Showing
8 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
|
||
credentials |
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,17 @@ | ||
# GeoDeepDive Application Template | ||
|
||
|
||
## Getting started | ||
Dependencies: | ||
+ [GNU Make](https://www.gnu.org/software/make/) | ||
+ [git](https://git-scm.com/) | ||
+ [pip](https://pypi.python.org/pypi/pip) | ||
+ [PostgreSQL](http://www.postgresql.org/) | ||
|
||
```` | ||
git clone https://github.com/UW-DeepDiveInfrastructure/app-template | ||
cd app-template | ||
make | ||
```` | ||
|
||
Edit `credentials` with the connection credentials for your local Postgres database. |
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,17 @@ | ||
# The name of the application | ||
app_name: Stringed instruments | ||
|
||
# First and last name of the user | ||
user: Example User | ||
|
||
# The NLP product to run the application against | ||
product: NLP352 | ||
|
||
# How often the application should be run | ||
frequency: weekly | ||
|
||
# A list of terms used to subset the corpus | ||
terms: [banjo, guitar, violin, viola, piano, cello] | ||
|
||
# Alternatively, a list of dictionaries can be provided in place of a list of terms | ||
dictionaries: [instruments] |
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,6 @@ | ||
postgres: | ||
user: postgres_username | ||
port: 5432 | ||
host: localhost | ||
database: deepdive_app | ||
password: password123 |
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,3 @@ | ||
all: | ||
cp credentials.example credentials; | ||
pip install -r requirements.txt; |
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,2 @@ | ||
* | ||
!.gitignore |
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 @@ | ||
psycopg2>=2.6.1 |
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,9 @@ | ||
import yaml | ||
import psycopg2 | ||
from psycopg2.extensions import AsIs | ||
|
||
with open('./credentials', 'r') as credential_yaml: | ||
credentials = yaml.load(credential_yaml) | ||
|
||
with open('./config', 'r') as config_yaml: | ||
config = yaml.load(config_yaml) |