Single page application that displays Speedtest results as a chart.
Go to https://speedtest-monitor.unite.solutions and "Sign in with email" using credentials below:
Email: [email protected]
Password: nohejwykop
Setup requires several steps to be taken. Before you go through, make sure you have installed tools:
- GIT
- Node.js (https://nodejs.org/en/download/)
- YARN (https://yarnpkg.com/lang/en/docs/install/)
First of all Firebase service needs to be set up. Go to https://console.firebase.google.com and choose existing or create a new project.
- Go to: Settings > Tab "GENERAL" > Section "Your apps" > "Add Firebase to your web app".
- Copy configuration from the newly opened window and paste it to the src/firebase/config.js file.
- Go to: Authentication > Tab "SIGN-IN METHOD".
- In the section "Sign-in providers" enable:
- Email/Password
- Go to: Authentication > Tab "USERS" and "ADD USER" by clicking the button.
- Fill in the form with email and set a new password (these data will allow you to login in the application).
- Copy the "User UID" of newly created user from the users table.
- Go to: Database > Tab "DATA".
- Add "users" to your database if does not exist.
- Add your newly created UID with "read" attrbute set as "true".
- Go to: Database > Tab "RULES".
- Copy and paste JSON:
{
"rules": {
"logs": {
".indexOn": "date",
".read": "root.child('users').child(auth.uid).child('read').val() === true",
".write": true
},
"users": {
".read": "auth != null",
".write": false
}
}
}
- Publish changes.
- Go to: Hosting.
- Click on the "GET STARTED" button.
- Go through the setup.
Install dependencies by:
yarn install
And then...
yarn deploy
This will deploy your page to the Firebase Hosting. Page will be available under https://your-project-name.firebaseio.com.
or...
yarn dev
This will run a server on your local machine: http://localhost:8080.
or...
yarn build
This will generate dist/
directory where you will find static page ready to publish on own server.