GET /players
GET /players?search={search_query}
GET /players?sort={player_asc || player_desc || salary_asc || salary_desc}
POST /players
GET /players/{id}
PUT /players/{id}
DELETE /players/{id}
-
Get your Firebase private key from
Your Firebase Project / Settings / Service accounts / Generate new private key
-
Rename it to
key.json
-
Move it into
functions/src
-
Update database rules at
Your Firebase Project / Database / Rules
allow read, write, update, delete: if true;
- Run commands
cd functions
npm run build
npm run populate