Skip to content

Instantly share code, notes, and snippets.

Avatar
✌️

James Zammit zammitjames

✌️
View GitHub Profile
View gist:33aa1f52b91d2d91e5461ddd2beb1d56
app.get("/k/listings/:name", function(req, res){
var id = req.url.replace("/k/listings/", "");
console.log(id);
db.ref("pre_processed_listings/"+id).once("value",function(snapshot) {
if (snapshot.val() != null) {
View client_search.js
////////////////////// BASE ////////////////////////////
var firebase = require('firebase');
var express = require('express');
var Queue = require('firebase-queue');
var app = express();
var admin = require("firebase-admin");
// Initialisation
admin.initializeApp({