Beego assignment Prodipto
- Beego
- Golang
- HTML, CSS, jQuery and JavaScript
- Go to this website and follow the instructions according to your OS: https://go.dev/doc/install
- Edit the .profile file by running the following command:
- sudo nano ~/.profile
- Add the following paths at the end of .profile file.
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/home/diptoprodipto/go/bin
export GOPATH="/home/diptoprodipto/go/"
export GOBIN="/home/diptoprodipto/go/bin"
- Run the following commands on your terminal:
- go get -u github.com/beego/beego/v2
- go get -u github.com/beego/bee/v2
- Reboot your machine.
- Resource: https://enlear.academy/how-to-install-beego-in-ubuntu-500136665843
- Resource: https://gist.github.com/linuxfemale/0fd614cf1e30b13ccedf1ca9544aaaf5
- Go to the project directory and run the following command:
- bee run
- In case of "missing go.sum entry" error run:
- go mod tidy
- More on this error: https://stackoverflow.com/questions/67203641/missing-go-sum-entry-for-module-providing-package-package-name
- Hit this URL in your browser: http://localhost:8080/front
- Select your preferred option and cat images will be shown.
- You can sort the images in ascending/descending order and access them all in pagination mode.