codex-lv2-may-2025

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

Level 11: Secret Files Setup

What You’ll Do

Create the secret files needed for API keys and version control.

Instructions

📄 secret-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

✅ Check

  1. Create secret-variables.js with the template above
  2. Create .gitignore with the template above
  3. Verify both files exist in your project folder
  4. Make sure the filenames are spelled exactly right
  5. Don’t commit until you create your .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