From 39a18f48203a350e8173b2f6f0dc5e8d5078c77d Mon Sep 17 00:00:00 2001 From: Conor McNamara Date: Wed, 1 Mar 2023 21:42:04 +0000 Subject: [PATCH] Add basic statistics --- .gitignore | 1 - README.md | 14 ++++++++ src/components/Map.vue | 77 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 90 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d8d7dc2..f923245 100644 --- a/.gitignore +++ b/.gitignore @@ -64,5 +64,4 @@ node_modules/ # dotenv environment variables file .env -./src/api/firebase.js firebase.js \ No newline at end of file diff --git a/README.md b/README.md index 7308394..78cc4a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@ # Running Build & Deploying it to Firebase `npm run build && firebase deploy` +# Running Firebase Tests +`cd functions && npm run test` + +# Running Locally +1. Ensure you have Java 11 or greater installed. +2. Run `npm install` in the traintracker directory. +3. Run `npm install` in the functions directory. +4. Start the emultor (needed to emulate the functions locally) `firebase emulators:start &` (the & forks it into the background). +5. Run `npm run dev ` +You will need to click the "Populate Database" and "Fetch Data" buttons to get data into your local version of the webapp. + +To kill the npm process do `CTRL + C` in your terminal. +To kill the firebase emulators do run fg to bring the process to the foreground, then do `CTRL + C` + # Committing Make sure that you exclude the Firebase API key from any commits! diff --git a/src/components/Map.vue b/src/components/Map.vue index 817f35e..64aae09 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -1,4 +1,13 @@