Building an Enterprise IoT Platform from Scratch