jkettler / cs373-idb Goto Github PK
View Code? Open in Web Editor NEWTexas Legal Database
Home Page: http://texaslawdb.herokuapp.com/
Texas Legal Database
Home Page: http://texaslawdb.herokuapp.com/
*look at senator's page
Improve look & feel of base layout either just with bootstrap or some freely available bootstrap layout/theme.
Model the "votes" in the in-progress API and add basic data for testing.
-1 Your API supports multiple vice_chairs on a committee, but your models only support one.
-2 You should only define the ManyToMany field on one of the models, it's autogenerated on the other side.
Create the test cases and a test file for the API in Python and commit it to the repo
Since author was removed from the Bill model, it is now impossible to add a new bill since author was a required field.
Committee can't be referenced without being defined, so the order must be swapped. This creates the same issue with Senator. The solution is to provide a ForeignKey to the committees definition in Senator. See: http://stackoverflow.com/questions/18303406/name-is-not-defined-in-django-model
Author field is gone from bill, and instead there is now a "authors" relationship on bill with a reciprocal "bill_set" on senator. This new many to many relation replaces the old one-to-many author relationship. Apiary needs to be updated accordingly
Additionally, we must make certain that other changes did not go unnoticed, and that apiary is in sync with our django models.
The diagram only needs to show the associations and multiplicity between the classes.
-0 Rename 'author' to 'authors'
-0 Use null instead of 'none'
-0 For votes on a bill, use integer keys instead of strings (since they are IDs)
-1 POST body shouldn't be an array
Somehow we ended up with an older version of Bootstrap and JQuery, this should be upgraded
Add API info to the 10 page document that we need to turn in
The option to have multiple vice chairs should be removed. This needs to be updated in:
-The apiary API blueprint
-The tests.py file
-The graders public repo
Create a function in django, change html as necessary
I went over the Django models and compared them with my API and fixed a few bugs with the API and only noticed one minor thing with the models.py file:
In the Senator class, instead of "full_name" i have the field "name" in the API. Just "name" seems preferable to "full_name" for consistency.
That's the only thing that needs to be changed right now though.
Document the RESTful API and the Django models well.
bill -> senator
senator -> committee
Implement the API using tastypie
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.