I built an independent project and would like feedback

Hey there,

I’ve been teaching myself to code for the past couple of months and I am in love with it. I’ve built a few of the front end projects on the FCC curriculum but I wanted to do something a little different. I saw the idea for this project somewhere (I forgot where) online and decided I’d build it.

I have used this project as a starting ground for many techniques I’ve picked up and it’s also how I learned Angular. Right now I only know the basics of Angular but I definitely plan on learning more. It’s amazing what you can do with it in just a little bit of code.

Anyways what this project does is it takes input from the user, passes that text through two algorithms I wrote to find out if it is a state and what the two letter abbreviation for that state is. Then it uses the angular $http.get for an API call with the state returned from my algorithms. Finally it uses ng-repeat to to return certain pieces of data for each object to display a list of Legislators from the user’s inputted state.

Please take a look at this and let me know what you think. Any comments or criticism is welcome.

On a side note, I am working towards adding auto complete and pagination. So if you have any sites or resources for that please share.

Legislator Search

Here is my Github for anyone interested in my repositories.

THats great! functional, useful and nice looking.

I have one suggestion that’s UI based. The list of legislators shows their photos in a circular format with the aspect ratio of the photo shrunk so all the photos look squished top to bottom.

It would be great to either crop them in an ovoid shape and maintain full image and aspect ratio, or if you want to get really crazy, use a facial detection algorithm and crop around the faces!


Thank you!
I was worried no one was going to respond.
It’s a little difficult cuz all of the pictures from the API are different sizes varying by each state and right now with my skillset I don’t think that I’m capable of harnessing something like facial recognition.
I’ll definitely keep working on this and in the future I’ll look at somehow implementing facial recognition.
Thank you so much for taking a look. I appreciate it.