Jason Hsu, Android developer
2013-May-14 15:59 UTC
My first working Rails site - Bargain Stock Funds
Thank you for your help and encouragement. I am pleased to report that my first Ruby on Rails site is now operational. Bargain Stock Funds ( http://www.bargainstockfunds.com) now displays profiles of over 10,000 stock ETFs and mutual funds from the value investing point of view. There are detailed profiles of funds, there is a master file showing all data for all funds in CSV format, there is a list of the cheapest stock ETFs, and there is a list showing the valuations of each Vanguard fund. Features in the works include the ability to search for funds by various parameters and listings of the cheapest mutual funds in each style box category (large/medium/small, value/blend/growth). The source code for my Rails site is at https://github.com/jhsu802701/bsf/. The source code for the web-scraping script that acquires the fund data is at https://github.com/jhsu802701/bsf-python . (I tried Ruby initially, but my script was too slow. I''m not sure if switching to Python made it faster, or if other improvements made my script faster. I plan to try Ruby/JRuby when I revamp my Doppler Value Investing project, which profiles individual stocks in terms of net liquidity and free cash flow. The web site is http://www.dopplervalueinevsting.com .) I''m using a Postgres database to store the data on the stock funds. I chose Postgres because it''s far more robust and can handle far more web traffic than the default SQLite3 database. I have made sure to use rspec tests and to implement these tests with Guard and Spork. It allows me to implement Joel Spolsky''s principle of testing early and often. (Thanks, Rails!) I understand that history has not been kind to Rails developers who neglect the testing process, and I had to make sure that I am NEVER tempted to skip this step in the name of "meeting a deadline." My deployment process is configured to AUTOMATICALLY update the config/database.yml file. (Saving the password in plaintext on GitHub is not a viable option.) I had to make sure that I can update the production web site with ZERO downtime. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ccce695b-36fc-4a38-b465-66ee586d0e6c%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
On 14 May 2013 16:59, Jason Hsu, Android developer <jhsu802701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you for your help and encouragement. I am pleased to report that my > first Ruby on Rails site is now operational. Bargain Stock Funds > (http://www.bargainstockfunds.com) now displays profiles of over 10,000 > stock ETFs and mutual funds from the value investing point of view. There > are detailed profiles of funds, there is a master file showing all data for > all funds in CSV format, there is a list of the cheapest stock ETFs, and > there is a list showing the valuations of each Vanguard fund. Features in > the works include the ability to search for funds by various parameters and > listings of the cheapest mutual funds in each style box category > (large/medium/small, value/blend/growth).Excellent. One minor issue, some of the html is invalid (in minor ways as far as I can see). For example http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bargainstockfunds.com%2Ffundsview&charset=%28detect+automatically%29&doctype=Inline&group=0 Good luck Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.