An easy URL shortener service.
- react 18.2
- zustand
- node.js 14.20.0
- typescript 4.6.4
- tailwind 3.1.8
- vite
- go 1.18
- gin 1.8.1
- gorm 1.23.6
- traefik 2.8
All action should under f2e
folder.
Make sure you already under node.js 14.20.0
and install all dependencies by npm install
.
And then, you can run it.
$ npm run dev
Frontend will start in http://localhost:5173/
All action should under apiserver
folder.
Make sure you already under go 1.18
and install all dependencies by go mod download
.
$ go run main.go
It will start a web service in 8080 port.
You can test it from http://localhost:8080/api/ping
. If you get pong
, service would work fine.
Only backend now.
$ go test -v ./tests
Build images first, then you can launch them.
# build all images
$ docker-compose build
# launch all services
$ docker-compose up
Because of Traefik (reverse proxy), you can access the page by http://xurl.localhose
.