This application is a keg inventory manager for The Witch's Broom Tap Room (fictional) providing the following user features:
- Users can see a list of all available kegs along with their name, brand, price and alcoholContent.
- Users can submit a form to add a new keg to the list.
- Users can click on a keg to see its detail page.
- On the detail page, users can track when they serve a pint and see a keg's remaining content.
- Users can update a keg's details after entering them.
- Users can remove a keg from the list.
- If a keg is low on remaining pints, a user will be alerted to order more.
- If a keg is empty, a keg's contents will display as "out of stock".
- React
- Redux
- Firebase/Firestore
- JavaScript
- JSX
- HTML
- CSS
- Node.js
- npm
- Markdown
- git
-
You will need to use your system's
terminalemulator to set up and locally use this application. -
Clone this repository to a local directory using the command-line tools
cdandgit.
(how to install git)$ cd ~/<local_directory>/ $ git clone https://github.com/MicahOlson/witch-broom-firebase.git
-
Navigate to the top level directory of the cloned repository.
$ cd witch-broom-firebase/ -
Install all application dependencies using the
Node Package Manager(npm).$ npm install
-
Create a free
Firebaseaccount online and set up a project to correspond with this repo with Firestore and Authentication enabled.
(how to set up Firebase) -
Add a
.envfile to the root of thewitch-broom-firebasedirectory and include yourFirebaseconfiguration data.$ touch .env $ nano .env
REACT_APP_FIREBASE_API_KEY="your api key here" REACT_APP_FIREBASE_AUTH_DOMAIN="project-name.firebaseapp.com" REACT_APP_FIREBASE_PROJECT_ID="project-name" REACT_APP_FIREBASE_STORAGE_BUCKET="project-name.appspot.com" REACT_APP_FIREBASE_MESSAGING_SENDER_ID="your id number" REACT_APP_FIREBASE_APP_ID="your app id" -
Launch a local web server to interact with the application in a browser.
$ npm start
- IMPORTANT! Be sure to shut the server down when you are done using the app.
control-c
- IMPORTANT! Be sure to shut the server down when you are done using the app.
-
If it doesn't launch automatically, type localhost:3000 into your browser's address bar and hit
enter.
- Recommendations if you would like to utilize a GUI for opening or editing this application's files:
- Visual Studio Code - "Code editing. Redefined."
- Atom - "A hackable text editor for the 21st Century."
- SublimeText - "A sophisticated text editor for code, markup and prose."
- No known bugs.
- There are no feature enhancements scheduled for this application.
- If you find a bug, please report it at the email address below.
MIT
Copyright © 2021 Micah L. Olson
