The backend for ThePoopCrew's music social media.
Clone the repo
git clone https://github.com/ThePoopCrew/backend.gitInstall the Firebase CLI with npm
npm install -g firebase-toolsChange directory and install dependencies
cd backend
npm install --prefix ./functionsIn /functions/util/admin.js uncomment the following on line 6 to use the authentication emulator
// firebase.auth().useEmulator('http://localhost:9099');Rename /functions/dummy-config.js to just config.js to use emulator
Start the emulator
firebase emulators:startMake API calls to indicated http function URL: http://localhost:5001/<projectID>/<region>/api
Available routes:
/auth/register/
/auth/login/Required registration fields:
- email
- username
- password
- firstName
- lastName
Required login fields:
- email
- password
NOTE: Firestore resets upon new emulator instance
Documentation on all endpoints can be found on SwaggerHub