In this paper we focus on the integration of online learning in Moroccan education system. We propose a solution based on blended learning, which combines the best elements of online and face to face learning. We focus on the problem of Internet unavailability among learners who want to take online courses. We propose a solution allowing learners to complete their learning in a platform installed locally (offline) and to communicate with the platform online when the connection becomes available.