Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Don't Merge] Publication Api tested #45

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
133fb9d
rename
Aug 27, 2018
e7ffc8e
compiles not tested
Aug 27, 2018
ef2f17b
compiled but not tested
Aug 27, 2018
4f72f9a
fixed some runtime errors
Aug 27, 2018
0b205df
addressed adrians comments from previous pull request
Aug 27, 2018
95e07c5
removed commented out package
Aug 27, 2018
ffabd4b
typos
Aug 29, 2018
003ec39
renamed database column
Sep 13, 2018
6fd0543
addressed some comments
Sep 13, 2018
613dc9f
no noteId -> mapping
Sep 14, 2018
cc0c32b
figured out how to 'extend' classes
Sep 14, 2018
a830edd
handle unauthorized redirect a bit better
Sep 14, 2018
8d6ed42
for api return 404 or 301 on bad requests, rather than redirecting to…
Sep 14, 2018
38c36c8
addressed new comments
Sep 14, 2018
451f2ad
fixed some issues
Sep 14, 2018
e185a99
Merge remote-tracking branch 'origin/categories' into addNotev2
Sep 14, 2018
4a0c966
merge
Sep 14, 2018
0217fdd
was missing the type and realm parameter
Sep 14, 2018
3e5c59c
added category api
Sep 16, 2018
07a25f8
refactor into Env/datastore format
Sep 16, 2018
26c2790
fixed small type issue
Sep 16, 2018
23e528c
login test
Sep 16, 2018
e74e4ff
removing global variables
Sep 17, 2018
0be2248
all handlers aren't under environment
Sep 17, 2018
64a7ceb
added example of db testing
Sep 17, 2018
07c8299
added final db test, also have the test clear the Db before they run
Sep 17, 2018
f5732f9
added token util testing
Sep 17, 2018
8718be8
add note tested
Sep 17, 2018
264afcf
imporved organizatio + added content test
Sep 17, 2018
cbe3283
better table clearage
Sep 17, 2018
8c0f362
imporved readme/installation instructions
Sep 18, 2018
8ec29b1
setup postgres readme update
Sep 18, 2018
0b1df8a
typo
Sep 18, 2018
347cf33
fixed markup
Sep 18, 2018
7e0f4cf
updated notes code update
Sep 18, 2018
d182494
a more readable js code
Sep 18, 2018
d03a795
some readability improvments
Sep 18, 2018
88d7f9d
database helper
Sep 18, 2018
7515d50
updated noresults to exec instead of query
Sep 18, 2018
72f4cb7
bonded and tested
Sep 19, 2018
ed5679b
get users works
Sep 19, 2018
3ca7403
updated test get notes
Sep 19, 2018
9091209
added get notes integration test, and a bunch of database tests
Sep 19, 2018
5205d0b
publicatino api done and tested
Sep 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DATABASE_URL='postgresql://localhost?sslmode=disable'
DATABASE_URL='postgresql://localhost/cerealnotes?sslmode=disable'
PORT=8080
TOKEN_SIGNING_KEY='AllYourBase'
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Installation
## Locally
* postgres server installed and running
* `brew install postgres`
* `pg_ctl -D /usr/local/var/postgres start`
* postgres server installed and running: please refer to `migrations/README.md` for more info
* heroku cli installed
* `brew install heroku`
* golang installed
Expand All @@ -20,7 +18,4 @@ Assuming your local environment is setup correctly with Golang standards, you ca

1. `cd to this repo`
2. `go install && heroku local`
3. Visit `localhost:8080/login-or-signup`

# Run DB migrations
More db information in `migrations/README.md`
3. Visit `localhost:8080/`
138 changes: 0 additions & 138 deletions databaseutil/databaseutil.go

This file was deleted.

Loading