This project was bootstrapped with Create React App.
Step to get it up and running
-
run
npm install
-
create a firebase config file in path
src/config/firebase.js
. Get the config from your firebase database dashboard settings -
create a firebase collection like:
{
"collection": {
"admin": {
"admin": {
"username": "string",
"password": "string"
}
},
"calon": {
"default_key": {
"calon_1_nama": "string",
"calon_1_nim": "string",
"calon_2_nim": "string",
"calon_2_nim": "string",
"foto_kampanye": "link_to_firebase_storage",
"nomor_urut": "int",
"perolehan_suara": "int",
"tanggal_pendaftaran": "datetime",
}
},
"mahasiswa": {
"nim": {
"fakultas": "string",
"jurusan": "string",
"memilih": "bool",
"nama": "string"
}
},
}
}
-
look up routes at
App.js
-
insert API bearer key on
src/components/pages/TatacaraPage.js @testVision