npm install
Project Overview > Project Settings > Place you firestore config here
FIREBASE_API_KEY =
FIREBASE_AUTH_DOMAIN =
PROJECT_ID =
STORAGE_BUCKET =
MESSAGING_SENDER_ID =
APP_ID =
MEASUREMENT_ID =
1. go to https://console.firebase.google.com
2. Project Overview
3. Project Settings
4. Service accounts
5. Generate new private key
6. After download .json file change to service-account.json
7. Move service-account.json to folder db
(POST) REGISTER
localhost:3000/api/vi/auth/register
(POST) LOGIN
localhost:3000/api/vi/auth/login
(GET) LOGOUT
localhost:3000/api/vi/auth/logout
(GET) Get All Users
localhost:3000/api/vi/users/
(GET) Get User by id
localhost:3000/api/vi/users/:id
(POST) Create User
localhost:3000/api/vi/users/
(DELETE) Delete User
localhost:3000/api/vi/users/:id
(PATCH) Update User
localhost:3000/api/vi/users/:id