Giter Site home page Giter Site logo

nsandomeno / canal Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 831 KB

Lightspark wallet geared towards retail remittance flows.

License: MIT License

Kotlin 0.06% Swift 1.42% Objective-C 0.02% Dart 71.35% CMake 9.94% C++ 12.77% C 0.72% HTML 0.93% Ruby 1.93% JavaScript 0.86%

canal's Introduction

Canal

Lightspark wallet geared towards retail remittance flows.

System Prerequisites

Node.js
Java
Dart
Flutter SDK
Flutter CLI
XCode 
Android Studio (?)
Firebase CLI
FlutterFire CLI
IOS Simulator
Android Simulator

Firebase

Requires an invitation to [email protected]'s Firebase Console.

Configure Firebase project flutterfire configure --project=< FIREBASE PROJECT ID >

Add a feature after initial configuration firebase init [ feature ]

Local Emulators

first run firebase emulators:start --export-on-exit=./seed

subsequent runs firebase emulators:start --import=./seed

Cleanup

(1) get process ID sudo lsof -i tcp:8080 (2) use PID to kill process kill -9 < PID > (3) clean XCode xcrun simctl erase all (4) clean Flutter flutter clean (5) remove Pods (iOS) cd ios && rm -rf Pods/ && rm -rf Podfile.lock && cd .. (6) reinstall Flutter dependencies flutter pub get (7) reinstall Pods (iOS) cd ios && pod install && cd ..

Riverpod code generation

in its own terminal run

dart run build_runner watch

then use the @Riverpod decorator on a top-level function and part < repository >.g.dart; to generate the provider code.

Platform-Specific Modifications

Primary reference is the supporting notes here: https://courses.codewithandrea.com/courses/flutter-firebase-masterclass-complete/lectures/45889560

IOS

Podfile

Builds

Android

app/build.gradle

  • build.gradle : Set minSdkVersion to "21"

MacOS

key dependency compatability

Builds

Web

This is the command that must be use the in the GCP cloud shell terminal:

echo '[{"origin": ["*"],"responseHeader": ["Content-Type"],"method": ["GET", "HEAD"],"maxAgeSeconds": 3600}]' > cors-config.json

This is how it should be done in production eventually (with the application domain specified)

echo '[{"origin": ["http://your-domain.com"],"responseHeader": ["Content-Type"],"method": ["GET", "HEAD"],"maxAgeSeconds": 3600}]' > cors-config.json
gsutil cors set cors-config.json gs://YOUR_BUCKET_NAME

Then get the name of the storage bucket from Firebase Storage and copy it in to the parameter of this command gsutil cors set cors-config.json < BUCKET URI >

Explicit routing configuration for web

/// turn off the # in the URLs on the web
if (device.isWeb) {
    usePathUrlStrategy();
}

Windows

currently unsupported.

Linux

currently unsupported.

Resources

canal's People

Contributors

nsandomeno avatar

Watchers

 avatar

Forkers

fulminologylabs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.