-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cw,am|#14] create volumes within prod/dev Dockerfiles for persisting
poet files on host fs, included sample data dir with sample program/parameters files, added constants for file upload API, filled in the body of CreatPoet in API handlers, created Users and Poets Tables on Platform setup, added Language field/column to Poets data model TODOS: * need to return HTTP responses to users in CreatePoet handler * need to write unit tests for Creat Poet handler * Must implement User creation/auth/session stuff (idk???) in order to properly create a poet (since the poets table in Postgres references UUIDs within the users table) * possibly refactor the id arg in poet.Create.
- Loading branch information
connorwalsh
committed
Feb 22, 2018
1 parent
15b6ddf
commit 03ba28e
Showing
8 changed files
with
259 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
wowza |
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 @@ | ||
print('yoo') |
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,3 +1,14 @@ | ||
package core | ||
|
||
// there will be constants at some point... | ||
const ( | ||
POET_DIR = "/poets" | ||
|
||
// API CONSTANTS | ||
POET_FILES_FORM_KEY = "src[]" | ||
POET_PROG_FILENAME = "program" | ||
POET_PARAMS_FILENAME = "parameters" | ||
POET_NAME_PARAM = "name" | ||
POET_DESCRIPTION_PARAM = "description" | ||
POET_LANGUAGE_PARAM = "language" | ||
) |
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