diff --git a/collections/.firebaserc b/.firebaserc similarity index 100% rename from collections/.firebaserc rename to .firebaserc diff --git a/collections/.flowconfig b/.flowconfig similarity index 100% rename from collections/.flowconfig rename to .flowconfig diff --git a/collections/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml similarity index 100% rename from collections/.github/workflows/firebase-hosting-merge.yml rename to .github/workflows/firebase-hosting-merge.yml diff --git a/collections/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml similarity index 100% rename from collections/.github/workflows/firebase-hosting-pull-request.yml rename to .github/workflows/firebase-hosting-pull-request.yml diff --git a/.gitignore b/.gitignore index 25375c47..461a6d5f 100644 --- a/.gitignore +++ b/.gitignore @@ -45,7 +45,7 @@ bower_components build/Release # Dependency directories -collections/node_modules/ +node_modules/ # Optional npm cache directory .npm @@ -69,4 +69,4 @@ collections/node_modules/ collections/src/config/ #build folder -build \ No newline at end of file +build diff --git a/README.md b/README.md deleted file mode 100644 index 4e3e910b..00000000 --- a/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Collection Tracking App - -## Overview - -This web app was created for keeping track of a collection of items you own. Its intended use is for organization/productivity, to help prevent duplicate buying of products, -and to see everything you own in one spot! You can also make note of each items characteristics at time of ownership. At the time, you must fill in all the fields in order to submit an item. - -**LIVE LINK**: https://collections-90baf.web.app/ - -## Features - -- authentication through Google -- image and data upload to Firestore -- update and delete items already in the database -- dynamic population of items - -## Dependencies - -- React -- React-DOM -- React-Router-DOM -- Firebase -- Bootstrap - -### running locally - -1. clone repo locally -2. add config file to src with your firebase information (API key, etc). this involves setting up a project on the firebase console. See - https://firebase.google.com/docs/web/setup - -- I used app, firestore database, storage, and auth in my project. - -3. cd into the collections folder -4. run npm install -5. run npm start on the command line - -### task list - -- [x] add delete functionality -- [x] add update functionality -- [ ] have update fields autopopulate with previous information -- [ ] make all fields optional besides name? -- [ ] add search/filter functionality -- [ ] ongoing - make UI prettier - -### stretch goals - -- [ ] add ability to customize fields? -- [ ] add multiple collections ability? diff --git a/collections/.gitignore b/collections/.gitignore deleted file mode 100644 index 461a6d5f..00000000 --- a/collections/.gitignore +++ /dev/null @@ -1,72 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -firebase-debug.log* -firebase-debug.*.log* - -# Firebase cache -.firebase/ - -# Firebase config - -# Uncomment this if you'd like others to create their own Firebase project. -# For a team working on the same Firebase project(s), it is recommended to leave -# it commented so all members can deploy to the same project(s) in .firebaserc. -# .firebaserc - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -#config files -collections/src/config/ - -#build folder -build diff --git a/collections/database.rules.json b/database.rules.json similarity index 100% rename from collections/database.rules.json rename to database.rules.json diff --git a/collections/firebase.json b/firebase.json similarity index 100% rename from collections/firebase.json rename to firebase.json diff --git a/collections/firestore.indexes.json b/firestore.indexes.json similarity index 100% rename from collections/firestore.indexes.json rename to firestore.indexes.json diff --git a/collections/firestore.rules b/firestore.rules similarity index 100% rename from collections/firestore.rules rename to firestore.rules diff --git a/collections/functions/.eslintrc.js b/functions/.eslintrc.js similarity index 100% rename from collections/functions/.eslintrc.js rename to functions/.eslintrc.js diff --git a/collections/functions/.gitignore b/functions/.gitignore similarity index 100% rename from collections/functions/.gitignore rename to functions/.gitignore diff --git a/collections/functions/index.js b/functions/index.js similarity index 100% rename from collections/functions/index.js rename to functions/index.js diff --git a/collections/functions/package-lock.json b/functions/package-lock.json similarity index 100% rename from collections/functions/package-lock.json rename to functions/package-lock.json diff --git a/collections/functions/package.json b/functions/package.json similarity index 100% rename from collections/functions/package.json rename to functions/package.json diff --git a/collections/package-lock.json b/package-lock.json similarity index 100% rename from collections/package-lock.json rename to package-lock.json diff --git a/collections/package.json b/package.json similarity index 100% rename from collections/package.json rename to package.json diff --git a/collections/public/favicon.ico b/public/favicon.ico similarity index 100% rename from collections/public/favicon.ico rename to public/favicon.ico diff --git a/collections/public/index.html b/public/index.html similarity index 100% rename from collections/public/index.html rename to public/index.html diff --git a/collections/public/logo192.png b/public/logo192.png similarity index 100% rename from collections/public/logo192.png rename to public/logo192.png diff --git a/collections/public/logo512.png b/public/logo512.png similarity index 100% rename from collections/public/logo512.png rename to public/logo512.png diff --git a/collections/public/manifest.json b/public/manifest.json similarity index 100% rename from collections/public/manifest.json rename to public/manifest.json diff --git a/collections/public/robots.txt b/public/robots.txt similarity index 100% rename from collections/public/robots.txt rename to public/robots.txt diff --git a/collections/remoteconfig.template.json b/remoteconfig.template.json similarity index 100% rename from collections/remoteconfig.template.json rename to remoteconfig.template.json diff --git a/collections/src/App.css b/src/App.css similarity index 100% rename from collections/src/App.css rename to src/App.css diff --git a/collections/src/App.js b/src/App.js similarity index 100% rename from collections/src/App.js rename to src/App.js diff --git a/collections/src/Navbar.js b/src/Navbar.js similarity index 100% rename from collections/src/Navbar.js rename to src/Navbar.js diff --git a/collections/src/config/firebase-config.js b/src/config/firebase-config.js similarity index 100% rename from collections/src/config/firebase-config.js rename to src/config/firebase-config.js diff --git a/collections/src/hooks/useAddItem.js b/src/hooks/useAddItem.js similarity index 100% rename from collections/src/hooks/useAddItem.js rename to src/hooks/useAddItem.js diff --git a/collections/src/hooks/useDeleteItem.js b/src/hooks/useDeleteItem.js similarity index 100% rename from collections/src/hooks/useDeleteItem.js rename to src/hooks/useDeleteItem.js diff --git a/collections/src/hooks/useGetItems.js b/src/hooks/useGetItems.js similarity index 100% rename from collections/src/hooks/useGetItems.js rename to src/hooks/useGetItems.js diff --git a/collections/src/hooks/useGetOneItem.js b/src/hooks/useGetOneItem.js similarity index 100% rename from collections/src/hooks/useGetOneItem.js rename to src/hooks/useGetOneItem.js diff --git a/collections/src/hooks/useGetUserID.js b/src/hooks/useGetUserID.js similarity index 100% rename from collections/src/hooks/useGetUserID.js rename to src/hooks/useGetUserID.js diff --git a/collections/src/hooks/useUpdateItem.js b/src/hooks/useUpdateItem.js similarity index 100% rename from collections/src/hooks/useUpdateItem.js rename to src/hooks/useUpdateItem.js diff --git a/collections/src/index.css b/src/index.css similarity index 100% rename from collections/src/index.css rename to src/index.css diff --git a/collections/src/index.js b/src/index.js similarity index 100% rename from collections/src/index.js rename to src/index.js diff --git a/collections/src/logo.svg b/src/logo.svg similarity index 100% rename from collections/src/logo.svg rename to src/logo.svg diff --git a/collections/src/pages/auth/index.jsx b/src/pages/auth/index.jsx similarity index 100% rename from collections/src/pages/auth/index.jsx rename to src/pages/auth/index.jsx diff --git a/collections/src/pages/auth/signOut.jsx b/src/pages/auth/signOut.jsx similarity index 100% rename from collections/src/pages/auth/signOut.jsx rename to src/pages/auth/signOut.jsx diff --git a/collections/src/pages/auth/styles.css b/src/pages/auth/styles.css similarity index 100% rename from collections/src/pages/auth/styles.css rename to src/pages/auth/styles.css diff --git a/collections/src/pages/collections-manager/addItems.jsx b/src/pages/collections-manager/addItems.jsx similarity index 100% rename from collections/src/pages/collections-manager/addItems.jsx rename to src/pages/collections-manager/addItems.jsx diff --git a/collections/src/pages/collections-manager/index.jsx b/src/pages/collections-manager/index.jsx similarity index 100% rename from collections/src/pages/collections-manager/index.jsx rename to src/pages/collections-manager/index.jsx diff --git a/collections/src/pages/collections-manager/styles.css b/src/pages/collections-manager/styles.css similarity index 100% rename from collections/src/pages/collections-manager/styles.css rename to src/pages/collections-manager/styles.css diff --git a/collections/src/pages/collections-manager/updateItems.jsx b/src/pages/collections-manager/updateItems.jsx similarity index 100% rename from collections/src/pages/collections-manager/updateItems.jsx rename to src/pages/collections-manager/updateItems.jsx diff --git a/collections/src/pages/collections-manager/viewItems.jsx b/src/pages/collections-manager/viewItems.jsx similarity index 100% rename from collections/src/pages/collections-manager/viewItems.jsx rename to src/pages/collections-manager/viewItems.jsx diff --git a/collections/storage.rules b/storage.rules similarity index 100% rename from collections/storage.rules rename to storage.rules diff --git a/collections/yarn.lock b/yarn.lock similarity index 100% rename from collections/yarn.lock rename to yarn.lock