E-commerce has been growing exponentially during the last couple of centuries around the world due to expanding access to the Internet and, more recently, mobile technology. The ability to shop online has transformed how consumers interact with brands and retailers, and how global commerce operates. Recently, more and more companies, including those with strong focuses on technology and AI, are promoting Retail-as-a-Service (RaaS) as a solution to offer customers more intimate and personalized shopping experience. This is achieved by creating a boundaryless shopping experience where customers, goods and shopping environments are more tightly integrated. Data mining and data science are among the core techniques in RaaS. In this tutorial, we will provide an overview of the current best practices of RaaS, and highlight the key contributions that data science has made in the field. We will use real world application examples to demonstrate how data science has changed the shopping experience both online and offline ,and what the future of shopping might be.