Improv is a free and open standard with ready-made SDKs that offer a great user experience to configure Wi-Fi on devices.
Copy the src files into your project.
This SDK is used by ESPHome to allow setting up Wi-Fi on devices powered by ESPHome. You can find it's implementation here.
An example of a simple WebServer using Improv WiFi via Serial can be seen here.
- Code Documentation