Codeforces Anytime repository created by sono. This application uses firebase for DB and hosting.
Access to Firebase console with your google account.
After setup, copy your firebase config.
Create 'firebase' folder in 'src', and within it, create 'index.ts' file.
After that, implement like below.
import firebase from 'firebase/app';
// Add products to use
import 'firebase/auth';
import 'firebase/firestore';
const developConfig = {
// Write your firebase config for develop
};
const productionConfig = {
// Write your firebase config for production
};
const firebaseConfig =
process.env.REACT_APP_ENV === 'production' ? productionConfig : developConfig;
firebase.initializeApp(firebaseConfig);
export default firebase;
In your cloned directory, run below.
$ npm i -g firebase-tools
$ firebase login
$ firebase init
Access to Google Analytics console with your google account.
After creation, copy your Google Tag ID.
Create 'ga' folder in 'src', and within it, create 'config.ts' file.
After that, implement like below.
const trackID: string = 'your Google Tag ID';
export default trackID;
In your cloned directory, run below.
$ npm i
If you debug development env, run below.
$ npm start:develop
If you debug production env, run below.
$ npm start:production
$ npx npm-check-updates -u
$ npm install