Created a WebApp to visualize music genres and subgenres as a tree structure using React.js and Go. The WebApp supports adding new genres to the tree and deleting genres or subgenres.
If you ever receive a segfault on startup, make sure to update the sys module.
$ go get -u golang.org/x/sys
$ go mod tidy
Fixing npm updates
$ npm audit fix
Easiest with two terminals (one for frontend and one for backend)
$ cd backend
$ go mod tidy
$ rm test.db
$ go run main.go
$ cd ../frontend
$ npm install
$ npm run start
I'm not a fan of frontend development, so the frontend is, well, quite simple. The sizing is weird and the buttons are in an awkward spot. That being said, it was fun to play with React and Typescript.