| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Current Level: 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
Create the secret files needed for API keys and version control.
secret-variables.js for storing API keys.gitignore to prevent committing secretssecret-variables.js (starter template)// secret-variables.js
// Store secret keys or tokens here.
// ⚠️ Do not commit this file to a public repo.
// Put your huggingface secret token here
HF_TOKEN = "your-huggingface-api-token-goes-here";
// Optional: if you are using an API with secret, put it
API_TOKEN = "your-api-key-goes-here";
.gitignore (starter template)Copy this and put it in the .gitignore.
Check that the filenames are all spelled exactly right.
Don’t commit before you add your .gitignore
# Secret files (⚠️ do not push secrets!)
secret-variables.js
secret-variables.js with the template above.gitignore with the template above.gitignore to keep your token off GitHub and prevent it from becoming public information.| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Current Level: 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |