Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README for openstudioreleases #15

Closed
jmarrec opened this issue Sep 23, 2024 · 6 comments · Fixed by #17
Closed

Improve README for openstudioreleases #15

jmarrec opened this issue Sep 23, 2024 · 6 comments · Fixed by #17

Comments

@jmarrec
Copy link
Contributor

jmarrec commented Sep 23, 2024

What node/npm versions do I need? (I have Node.js v22.9.0)

Then I should probably do something like (sudo) npm install -g yarn

Then I should yarn install probably.

yarn dev fails

Error: EMFILE: too many open files, watch '/home/julien/Software/Others/openstudiocoalition.github.io/openstudioreleases/public'

Maybe add more info on how I set up the .env file for eg (who do I contact to get the tokens and co?)

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

Modified /etc/sysctl.conf, added

# Default: 128
fs.inotify.max_user_instances = 512
# Default: 65536
fs.inotify.max_user_watches = 524288

Reloaded: sudo sysctl --system

Now I get a × Resolve error: Can't resolve '../firebase-config.json' in '/home/julien/Software/Others/openstudiocoalition.github.io/openstudioreleases/src'

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

.env.example does not have a GA_ID, but it has a FIREBASE_MEASUREMENT_ID, which I think is the same..? Or is GA_ID meant to be the measurement ID for the website itself, the "OS App Git - GA4" under the google analytics console?

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

Why are we using a firebase-config.json and not the .env thing

import firebaseConfig from '../firebase-config.json';
// import { firebaseConfig } from './firebaseConfig';

There isn't an option on the Firebase Project Settings (https://support.google.com/firebase/answer/7015592?hl=en#zippy=%2Cin-this-article ) to download a JSON AFAIK, so you end up copying a JS var, and making a change to conform to JSON anyways, so might as well use .env.

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

I'm up to the point where in openstudioreleases, yarn dev serves properly, but the page is blank?

Hum....

image

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

nevermind, I wipe the dist/ and now I see it

@jmarrec
Copy link
Contributor Author

jmarrec commented Sep 23, 2024

Something is missing from the documentation, I see zero mentions of the firebase-service-account json.

$ yarn es scripts/getUsers.ts
yarn run v1.22.22
warning package.json: No license field
$ set ESBUILD_RUN=true && node --no-experimental-fetch -r esbuild-register -r isomorphic-fetch scripts/getUsers.ts
node:internal/modules/cjs/loader:1251
  throw err;
  ^

Error: Cannot find module '../firebase-service-account.json'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant