A Send simple push notifications with flutter

notifi.it

A push notification application for multiple platforms.

Install Flutter

https://flutter.dev/docs/get-started/install

flutter channel master
flutter upgrade

create .env with the content

CODE_ENDPOINT=http://127.0.0.1:9081/code
SERVER_KEY=Hu2J7b7xA8MndeNS
WS_ENDPOINT=ws://127.0.0.1:9081/ws

run the backend

Install docker

git clone https://github.com/maxisme/notifi-backend
cd notifi-backend
docker-compose up --build app

MacOS build & run

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
flutter doctor
flutter config --enable-macos-desktop
flutter build macos
flutter run -d macos

Tests

Lint & Test

bash ./pre-commit.sh

Set screenshot asserts

bash ./test/set-asserts.sh

Extras

Add pre-commit hook

ln -s $(pwd)/pre-commit.sh $(pwd)/.git/hooks/pre-commit
chmod +x $(pwd)/.git/hooks/pre-commit

fastlane

provision profiles

fastlane sigh -p macos
fastlane sigh -p ios

Jetbrains flutter plugin:

https://plugins.jetbrains.com/plugin/9212-flutter/versions

Db path

~/Library/Containers/uk.me.max.notifi/Data/Documents/notifications.db

GH .env secret to base64 string

cat .env | openssl base64

GitHub

https://github.com/maxisme/notifi