For an off-the shelf solution, Adafruit has 3 li-po chargers that you can plug in the battery, and then connect it to the board, and possibly charge the battery with 5v (or 6v solar or up to 12v):
...