A few weeks ago I've created a project with an ESP8266 called: ESP8266 Web Server without an Arduino.
That's exactly what you're going to build, if you follow all the steps in this Instructable.
It's amazing what you can do with this $4 WiFi Module.
The video below shows the final result of this project.
Step 1: Components
Step 2: Flashing NodeMCU
For this project your need to flash your ESP8266 with NodeMCU.
Follow the circuit presented in this step and use the NodeMCU flasher to flash NodeMCU.
Flashing your ESP8266 with a new firmware is pretty straight forward, but if you need an in depth tutorial follow this blog post: How to Flash NodeMCU Firmware on the ESP8266.
Step 3: Uploading Lua Code
Step 4: Final Circuit
Follow the schematics in this step to build your web server.
Step 5: Accessing Your Web Server (Demonstration)
To access your web server type in the URL bar your ESP8266 IP address.
And below you can watch the final result!
No you can control your LEDs (or any output) with your smartphone, tablet or laptop.
Thanks for reading,
-Rui from Random Nerd Tutorials