Tool to shorten long URL to short one.
- Golang
- React
- Mongo
- Echo (Golang Web Framework)
- Login Auth via JWT
- URL Shortener
- Custom URL for logged in user
- URL Click analytics
- Fix Swagger
rename config/env.sample to config/.env update environment variable like Mongo URI
Docker Required
docker build -t shorty .
docker run -p 1234:1234 -it --rm --name myapp shorty
Open localhost:1234 in browser
- Golang 1.13+
- Node 10+
- Yarn 1.x
Install golang dependencies
Run following commands from project root directory
go get -d -v ./...
go install -v ./...
To run Golang Server
go run .
golang server run at localhost:1234
For React Web Build
Install web dependencies
Run following commands from web directory
npm install # or yarn
for development react site
npm start #or yarn start
react dev server run at localhost:3002
API_BASE for dev is set to localhost:1234 default configuration is enough to run a working app. You can change web config from
web/config/constant.dev.js
make swagger
it will generate docs folder and can access doc via /swagger/index.html