Skip to content

davidkretch/foodtrucksofdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Trucks of DC

Food Trucks of DC is a daily food truck tracker for Washington DC.

Frontend

The frontend uses Firebase to authenticate users and fetch data. It uses React to draw the page based on the fetched data.

Firebase credentials

The frontend requires a Firebase config in frontend/src/firebaseConfig.js. You can download the file in the Firebase console under Project settings -> section Firebase SDK snippet -> option Config.

It should look like this. It must end with export default firebaseConfg.

const firebaseConfig = {
  apiKey: "foobar",
  authDomain: "foo.firebaseapp.com",
  databaseURL: "https://foo.firebaseio.com",
  projectId: "foo",
  storageBucket: "foo.appspot.com",
  messagingSenderId: "123",
  appId: "123"
};
export default firebaseConfig;

Credential API requirements

The frontend uses a Google Cloud API key which must have access to the following APIs:

  • Cloud Firestore API
  • Identity Toolkit API
  • Token Service API

Backend

The backend:

  1. Checks the DC food truck lottery results.
  2. Downloads any new PDFs to Cloud Storage.
  3. Converts them to CSV.
  4. Processes them and uploads them to Firestore.
  5. Makes daily data available through Firestore.