Commit Graph

27 Commits

Author SHA1 Message Date
Eli Ribble aa1664eea0 Make the GET /session/ endpoint work with auth
If we don't reorder this logic then we'll never set up the user's
information so that GET /session/ has the data it needs to show the
session information.
2016-05-17 15:12:17 -06:00
Eli Ribble ded63dc932 Include user URI and session URI in GET /session/
This makes it so that we can log out by doing a DELETE on /session/ by
URI.
2016-05-17 15:10:51 -06:00
Eli Ribble 1fbe9558bf Set up a session when the user gets created
That way we don't have to login after creating a user. yay.
2016-05-17 14:50:24 -06:00
Eli Ribble beb3ad89c5 Add use name and client URI to session response
I probably need to change the URI to the session URI
2016-05-17 14:40:29 -06:00
Eli Ribble d83312234b Add session creation and handling
This commit adds setting the content of the current user from the
session cookie the user sends back and forth. That means we can actually
pull out the session data for use when handling requests. We can also
create new sessions and set up the session cookie
2016-05-17 14:16:14 -06:00
Eli Ribble db066e18d7 Add basic index for webpack dev server 2016-05-17 14:14:28 -06:00
Eli Ribble b118f80281 Set up babel's ability to handle trailing commas 2016-05-17 14:14:10 -06:00
Eli Ribble fece65159a Make CORS debug logs go quiet
Otherwise I'm just inundated with them and I'm rarely debugging CORS
2016-05-17 11:08:19 -06:00
Eli Ribble f766f8dfa4 Add basic CORS support
I don't really need it yet, but I had added it in as I was trying to
sort out how to get the UI working with the API
2016-05-17 11:08:19 -06:00
Eli Ribble 7a3cfa95cd Run debug server on another port
That way it won't conflict with other services I normally run
2016-05-17 11:06:41 -06:00
Eli Ribble 72758a0921 Fix initial migrations and add users table
Apparently I had screwed up the ofxaccount generation in the previous
version of the initial table creation
2016-05-17 10:30:04 -06:00
Eli Ribble 6338c4f066 Add working webpack config and react app
It doesn't do much yet, I'm just sketching out the basic elements and
starting to get a basis for something that will work
2016-05-16 18:21:37 -06:00
Eli Ribble c1c059953f Start the frontend package
This is just based on npm init
2016-05-14 22:16:05 -06:00
Eli Ribble f063c3fcfd Update gitignore for npm modules 2016-05-14 22:13:40 -06:00
Eli Ribble 6a2cb087fc Add GET /user/ implementation that works
Previously my GET was just a placeholder so I could build URIs against
it. Now it actually works and returns information on a user
2016-05-04 07:16:05 -06:00
Eli Ribble 69228f21ca Add API for creating new users 2016-05-03 19:28:56 -06:00
Eli Ribble c84288eaac Set up basic testing framework with py.test
We're just testing that the about route works at all. We aren't even
testing that it does anything. But this represents wiring together a
bunch of things to get tests working including configuration
specifications, DB connections, table definitions, the app itself, etc
2016-05-03 18:59:08 -06:00
Eli Ribble 861b6f0f71 Implement a simple logout mechanism
I would have done a DELETE to /login/ to make it like a resource but my
browser won't do a raw <form> with method="DELETE" :(
2016-05-02 11:58:28 -06:00
Eli Ribble 94b78dacca Add simple user login via flask_login
This doesn't do much - it'll authenticate any username and password. But
at least it will show me when a user is logged in and when they aren't,
which is useful to start figuring out the workflow for sessions
2016-05-02 11:54:32 -06:00
Eli Ribble ccde1908ba Add a script for running all pylint stuff
It's just a conveniece, but it's pretty convenient
2016-05-02 09:31:54 -06:00
Eli Ribble 4386c23f2f Add a standard pylintrc file
I'm using mothermayi so it's nice to do things like turn off the reports
at the end
2016-05-02 09:31:23 -06:00
Eli Ribble 0ff3e50943 Put the version in the root module
Most packages do this, it's kind of an unratified standard
2016-05-02 09:30:59 -06:00
Eli Ribble 03e431a2ce Get basic debug Flask application working
Now I can serve up an API endpoint that indicates the version. yay
2016-05-02 09:30:27 -06:00
Eli Ribble 681a62bbf5 Get alembic up and running
I took a stab at a reasonable schema just to get started. For now I want
workflows that are working. I'll pound the thing into the correct shape
in time
2016-05-02 08:46:12 -06:00
Eli Ribble 3e4eab0802 Ignore my virtual environment
Maybe this should go in a global config. Oh well.
2016-05-02 08:46:12 -06:00
Eli Ribble 8b563c3a8f Add initial setup file with dependencies and simple readme
This is just to start sketching out the repository and how we go about
installing it
2016-05-02 08:46:12 -06:00
Eli Ribble ef6b76e4f0 Initial commit 2016-04-27 19:31:26 -06:00