With the new flexible architecture, I made a lot of progress on the Fantasy Stat Tracker today. First at hand was to programatically populate the Players table in the database. This is handled with a pretty simple PHP script that I intend to schedule to run nightly on the server to ensure that as new players come into the league, they are available in the Stat Tracker. Just a few minutes ago as I was wrapping up for the night I realized, however, that the source I’m using to get the player list is out of date. I noticed this when trying to add Jesse Carlson to my team. He’s not listed as a player…and Frank Thomas is still listed as a member of the Blue Jays. Obviously I’ll need to look around for a better, up-to-date, player list.
Today I also built out the first drafts of adding players to, and removing from, a team roster. When viewing your team, each player has a red “X” alongside their stats. Clicking that icon opens a confirmation prompt and leads to removing the player from the team roster. Players are added by visiting a massive list of all players, then clicking on the player’s name. I’ll flesh out that interface to allow sorting of players (positions, names, leagues, teams) to make it easier to find the player you wish to add to your team.
Now that it’s possible to add players to a roster, it will be possible to build new teams, so I think my next task will be a workflow to create a new team. Following that will finally be the workflow to sign up for an account! Stay tuned! Soon you’ll be able to sign up to use the Fantasy Stat Tracker to follow your teams!