https://github.com/charles-dr/trefla-admin
https://github.com/charles-dr/trefla-admin
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/charles-dr/trefla-admin
- Owner: charles-dr
- Created: 2020-08-05T20:43:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T18:38:53.000Z (over 3 years ago)
- Last Synced: 2025-04-04T14:11:21.391Z (10 months ago)
- Language: HTML
- Size: 15.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trefla Admin Panel(npm)
## Firebase
### Emulators
```bash
firebase emulators:start
```
### Deploy All
```node
firebase deploy
```
### Deploy hosting only
```node
firebase deploy --only hosting
```
### Deploy functions only
```node
firebase deploy --only functions
```
### Fix lint issue on function
```node
npm run lint -- --fix
```
refered from
https://github.com/prettier/eslint-plugin-prettier/issues/114#issuecomment-452329371
### Ports
- functions emulator: 5001
- firestore emulator: 8080
- hosting emulator: 5000
## Data Structure
### notification type
- admin_notifications "11": ID verification requests
- admin notifications "12": ID Transfer request
- admin_notifications "13": id changes
- optional val
30, 35, 36, 50, 51,
- type
0:create, 1: update, 41, 42, 43
- sender_id
- time
-noti_id
(51, 43) comment
(50, 43) comment
## Permissons
- notification, manage users, manage posts, comments, edit langaugae
- bug, report
## To-dos
- [done]delete id transfer: model not closed
- [done]transfer id: origin user must have card number
## Project Structure
- menu: constants/menu.js
- language: lang/locales/en_US.js
- Styles: assets/css/scss