I use Micropython, and there is an example web server here:
http://docs.micropython.org/en/latest/e ... ttp-server
You will need to combine with the code to setup an accesspoint.
If you use another microcontroller with the esp8266, you will need to communicate with that via some protocol (e.g. with the rx/tx pins or gpios) or talk to your hardware with i2c or something else.