Giter VIP home page Giter VIP logo

go-qr-code-generator's Introduction

This project is a collaboration between Abdallah and Carolina

TODO

Phase 1

CLI application that takes an url ? and generates a Qr code

qr -o qr.png "https:google.com"
  • create CLI
  • Parse flags
  • Generate a qr (qr library)
  • save to file

Phase 2

Evolve this to a HTTP server which exposes an endpoint that takes the same url and returns an image of the qr code

  • HTTP server
  • URL parsing
  • Maybe add a router ?
  • Extract parameter
  • Return an image
qr -u "https://google.com" -o image.png

qr -server 

End goal

  • CLI has a new flag that runs in server mode
  • Server mode exposes an endpoint that takes a url and brings back a QR image
  • We want the API responses to be similar to https://placehold.co/ i.e if you put the url in an tag the browser should be able to render the qr code just fine

Breakdown

  • ✅ Creating an HTTP server
  • ✅ Extract the url from the endpoint.
  • ✅ Adding additional "server-mode" flag to the CLI.
  • ✅ Reuse the existing qr generation logic to return the image.
  • ✅ Proper test http (instead of using phone).
  • ✅ Add Tests & re-structure the code to make it more testable.
  • ✅ Refactor to split things in different files with a logical flow.
  • Embed html for a UI for adding the URL.

Phase 3

  • Define the service GRPC

go-qr-code-generator's People

Contributors

carolinaborim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.