- backend: API written in Golang Gin with SQLite database
- frontend: React and Axios
For backend, install golang >= 1.21.1
and run
cd backend
go mod tidy
go run .
For frontend, run
cd frontend
npm install
npm start
Note that both are running in dev mode. I had to allow CORS to let them communicate on localhost.
The bonus features:
- List sorting
- Pagination
Additionally:
- Containerization (Docker)
- Test/production mode
- Frontend testing
- Allow greater flexibility of adding new fields to metatata/database? Right now, it takes a lot of manual work to change anything in frontend resp. backend. Perhaps using Golang
reflect
package and iterating over struct fields?