Custom Home Assistant

how can i edit frontend code/ core code and then install the custom home assistant?

Basically you’ll be looking at forking HA, modifying it, then building and running your fork. You can’t re-use HAOS, or the Docker images.