Team 973 - The Greybots' clock in/out system that runs on Firebase's Real Time Database w/ Firebase Hosting.
- Clone this repository to your local workspace.
- Install
npm
using your package manager. Check NPM's website for instructions. - Run
npm install
in the repository.
Firebase Hosting allows you to serve the site on a locally hosted web server to replicate Firebase's servers. To serve, do the following:
- Run
npm start
in the repository. - Open a web browser to https://localhost:5000/
- Login using the email and password.
To push your changes to Firebase's servers, do the following:
- Run
npm run deploy
in the repository. - Open a web browser to https://greybots-signin.firebaseapp.com/
- Login using the email and password.
Try to separate your code into different modules. An example of this is in src/js/util.js
where there are utility functions for time, date, and etc. Make sure to use export
s.
ESLint is included with this repository and is configured to be strict for linting. This will help with performance issues as well as generating cleaner code.
To lint, use npm run lint
.
If your site seems to be breaking, open Developer Tools > Console to view JavaScript errors that will point you to your problem. Most of the time, these problems can be resolved by linting.