Lagos should be your base. Lagos has a great night life at that time of year.
However, be aware that July and August are peak peak high season here and prices for accomodation will be up.
Lagos is +- 30km from the rugged Far West Coast of the Algare with its well-know surfing beaches at Castelejo, Carrapateira etc.