NodeMCU - need to create Wi-Fi, but NodeMCU won't be connected to another Wi-Fi

Hi.

I have a relative big problem with my NodeMCU.

I need to create Wi-Fi, but NodeMCU won't be connected to another Wi-Fi (internet).

Is it possible?

show the code

I don't have a code.

I am asking to help with the code, if it is possible.

I can create webserver on NodeMCU, but NodoMCU must be connected to another Wi-Fi.
I need to create webserver, but NodeMCU won't be connected to another Wi-Fi.

Something like router. You can connect to router Wi-Fi and configure the router with gateway even if the router is not connected to WAN. I need to create this on NodeMCU.

see the WiFiAccesPoint point example of the ESP8266WiFi library