##strn
This will become a url shortener service implemented in Go lang and backed by redis. I hope I would have a lot of fun exploring go.
- create a shortened version of inputed url
- Create a unique id ( simply ran string ) inside redis
- Store the url value in string
- receive a request in the pattern of /:unique_id
- process and find the url
- if the url is found redirect the user
- main is entry and attach requests to accessive handlers
- handlers* control and manage data and also validate before passing to datastore
- datastore* collect and analys the data and then store in the backend
- datastore* can query the necessary data for handlers so that it can give it out to the user (platform)
- Install Docker
- Install Docker Composer ( docker-composer )
$ docker-composer build
$ docker-composer up -d
Currently I have deployed the service at Google Cloud Virtual Instances. So the setup would be different depending on the architect.
- App End Point [130.211.157.136:8080]
- Running in the smallest f1-macro type vm
- Frontend Validation / Backend Validation
- User && Session Management
- Service API
- Test Suite
( Thinking to deploy on gcloud ) / ( That's all for now to make it work )