I once loaded my sketch from arduino uno to esp8266 .
tx arduino -----tx esp8266
rx arduino ----rx esp8266
GPIO_0 of esp8266 to GND to put into flash mode, CH_PD and RST to HIGH. It is now successfully flashed.
Now How can I run esp8266 just giving power to it and connect to the AP ? Tell me configuration.