fireship-quizapp-data
fireship-quizapp-data copied to clipboard
NodeJS script doesn't work, can I submit a python alternative?
Tried automatically populating the database with the NodeJS script, but couldn't get it to work. It was easy enough to reimplement the functionality in Python. Are you interested in hosting the python version on this repository for others to use?
The NodeJS script wasn't working for me because there were some dependency issues. Getting the latest packages fix this:
- remove all dependencies from package.json
- run
npm i @grpc/grpc-js firebase-admin fs-extra yamljs
The NodeJS script wasn't working for me because there were some dependency issues. Getting the latest packages fix this:
- remove all dependencies from package.json
- run
npm i @grpc/grpc-js firebase-admin fs-extra yamljs
Thanks , it works
Still doesn't work even with running dpst999's script.
❯ node quizzes.js node:internal/modules/cjs/loader:959 throw err; ^
Error: Cannot find module '@google-cloud/firestore' Require stack:
- E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\firebase-namespace.js
- E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\default-namespace.js
- E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\index.js
- E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\quizzes.js