In this service, the user is able to generate a short URL based on a long URL e.g.
Long URL: https://www.google.com/search?q=some+long+url+to+search+on+google
Short URL: http://localhost:3030/Aq13abq3
when the user access the short URL needs to be redirected to the original link
GraphQL: https://rgeorgel-url-shortener.herokuapp.com/api/graphql
Swagger: https://rgeorgel-url-shortener.herokuapp.com/swagger/
pre-requirement: had yarn installed in the machine. recomend to install the YVM
- Create the file .env (based on te file .env.example)
- Run the command
docker-compose up -d
** The first execution maybe can take some time. When the container is initialized, the dependencies will be downloaded
docker-compose ps
docker-compose logs -f --tail=50 url_shortener
yarn test
In this project you will be able to:
http://localhost:3030/api/graphql
- Get by id (Get the shortURL by id)
- Get by code (Get the shortURL by short code)
- Create (Create a new shortURL)
- Update (Update an existent shortURL)
http://localhost:3030/swagger/