Giter VIP home page Giter VIP logo

Goflickr

Introduction Puppy pull is a simple web application that fetches photos of cute puppies from the internet and displays it on a webpage. The visitors to the page can upvote and downvote an image. They can sort the images according to the most voted. Every image will display the number of votes it has received.Go server helps puppy pull by fetching data from flickr and giving it to Nodejs and then to client for display.

Highlights : Client ---> Node Server ---> Go server ---> MongoDB (Puppypull)

Goserver Fetched data form flickr and stores it in MongoDB (Created a free db in Mongolab.com)

Client sends a request to Node server and Node server inturn connects to Go server. Go server fetches data from internet using Flickr API and stores in Mongo database. Go server serves back Node server with JSON data. Node server handles the incoming JSON data and combines it with HTML ,Angular JS and displays it to the client.

To make it work :

  1. Clone this respository to your local machine. (Machine should have go installed)
  2. Run the command "go run gomongohq.go" in terminal.
  3. Now open browser and go to the given url. http://localhost:4747/fetch This will give a json output.
  4. routing for upvote and downvote also handled in gomongohq.go file.

Puppy pull code is in the below repository.

https://github.com/muralimano28/puppypull/

Muralimanohar's Projects

Muralimanohar doesnโ€™t have any public repositories yet.

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.