- cp .env.example .env
- set variable in .env file, specially FIREBASE_PROJECT_ID.( if you want to use own key file )
- add firebase service account key in root of project as name
test-firebase-account-key.json
( if you want to use own key file )
make run
make migrate
when server is running, you can open the url http://localhost:15672/
in browser.
.
└── consume-fcm/
├── cmd/
│ └── server/
│ └── main.go
├── internal/
│ ├── controllers/
│ │ └── queue.go
│ ├── models/
│ │ └── fcm_job.go
│ ├── pkg/
│ │ ├── database.go
│ │ ├── firebase.go
│ │ └── message_queue.go
│ ├── repositories/
│ │ └── fcm_job.go
│ ├── services/
│ │ └── queue.go
│ └── workers/
│ └── queue
└── migrations/
└── ...