Fork of https://github.com/gammons/todolist_frontend
You can test the frontend with npm run start
in ./todolist/frontend
,
and just having your go server listen in a separate tab with go run . web
.
Then just go to localhost:3000.
The frontend can be built with npm run build
in the frontend directory.
Currently it creates an error for me but the files still get made, it doesn't seem to be causing an issue.
You may need to set your node version if it breaks.
The build directory is currently included in the git repo. You build the app first and then build the server with go build
at the top level.
It uses go:embed
to include all the frontend files.
Todolist is open source, and uses the MIT license.