These days, more and more web are converting into mobile devices such as the internet of things (IoT). These applications are distributed in nature and installed on mobile and servers to achieve many business goals. With this motivation, mobile edge computing (MEC) is an evolving paradigm that reduces the energy consumption of mobile devices through the offload process. However, currently all studies only concentrated on mobile energy and widely overlooked the energy usage of the computing node resources and application deadlines during offloading and scheduling in the MEC network. This research suggests a new mobile edge cloud (mob-cloud) architecture that minimises the nodes energy and meets the deadline requirements of applications. This research formulates this problem as the convex optimisation problem under linear integer programming. The mob-cloud consists of different types of virtual machines which are implementing at the edge computing. This study introduces a novel deadline and energy-efficient task scheduling (DEETS) algorithm framework consisting of task sequencing, resource searching, and mobility-aware scheduling. Furthermore, DEETS keeps tradeoff performances between resource energy usage and task deadline. Simulation results show that the proposed DEETS outperformed all contemporary methods regarding energy usage and deadlines of applications by 50%.