2 ms·
I have been building react frontend and golang backend (go-gin to be specific) recently. However, post compilation of react app, I use go-bindata to convert it
by debarshri 6y ago
I have been building react frontend and golang backend (go-gin to be specific) recently. However, post compilation of react app, I use go-bindata to convert it into a golang embeddable asset and service it via specific route in go-gin, For instance (/#/ or /) is there frontend is located and (/api) is there the api endpoints are located. In this way, you can actually distribute the app with just one binary. Downside is that it is a complicated workflow and takes quite sometime to compile.