This tutorial is a great demo of using the CC3000 breakout/shield in server mode, and also with mDNS so you don't need to know the IP address of the module!
Background
Before you get started it will help to familiarize yourself with the CC3000 and IR sensors by reading these related guides:Continue on to learn about the hardware for this project.