All Projects → Dahkenangnon → flutter_feathersjs.dart

Dahkenangnon / flutter_feathersjs.dart

Licence: MIT license
Communicate with your feathers js server from flutter app with unbelieved ease and make happy your customers.

Programming Languages

dart
5743 projects
shell
77523 projects

Projects that are alternatives of or similar to flutter feathersjs.dart

FlipED
A LMS built specifically for Thailand's Education 4.0 system.
Stars: ✭ 24 (+26.32%)
Mutual labels:  feathers, realtime, feathersjs
SocketIOUnity
A Wrapper for socket.io-client-csharp to work with Unity.
Stars: ✭ 69 (+263.16%)
Mutual labels:  realtime, socketio
realtime-geolocation
Geolocation tracking app with Node.js, Socket.io, & AngularJS
Stars: ✭ 29 (+52.63%)
Mutual labels:  realtime, socketio
multipiano
A vuejs application which allow users to play piano with friends!
Stars: ✭ 33 (+73.68%)
Mutual labels:  realtime, socketio
Feathers
A framework for real-time applications and REST APIs with JavaScript and TypeScript
Stars: ✭ 13,761 (+72326.32%)
Mutual labels:  feathers, feathersjs
Phpsocket.io
A server side alternative implementation of socket.io in PHP based on workerman.
Stars: ✭ 2,026 (+10563.16%)
Mutual labels:  realtime, socketio
onchat-web
A simple, beautiful, mobile-first instant messaging progressive web application.
Stars: ✭ 138 (+626.32%)
Mutual labels:  realtime, socketio
Realtimeboard
🙌 Collaborative Whiteboard (Socket.IO + Vanilla JS Frontend)
Stars: ✭ 30 (+57.89%)
Mutual labels:  realtime, socketio
Angular5 Iot Dashboard
Multipurpose dashboard admin for IoT softwares, remote control, user interface. Develop your client dashboards in Angular 5 with vast variety of components available.
Stars: ✭ 148 (+678.95%)
Mutual labels:  realtime, socketio
Aaronvandenberg.nl
⚛️ Web Developers portfolio build with Gatsby.js & React.js
Stars: ✭ 98 (+415.79%)
Mutual labels:  realtime, socketio
moleculer-adapter-feathers
Moleculer service mixin wrapping Feathers.js services
Stars: ✭ 17 (-10.53%)
Mutual labels:  feathers, feathersjs
Firecamp
The world's first Multi-protocol API Platform. Run, Test, Collaborate to build Any Kind Of APIs.
Stars: ✭ 195 (+926.32%)
Mutual labels:  realtime, socketio
feathers-versionate
Create and work with nested services.
Stars: ✭ 29 (+52.63%)
Mutual labels:  feathers, feathersjs
trystero
🤝 Serverless WebRTC matchmaking for painless P2P — Make any site multiplayer in a few lines — Use BitTorrent, IPFS, or Firebase
Stars: ✭ 512 (+2594.74%)
Mutual labels:  realtime
feathers-blob
Feathers service for blob storage, like S3.
Stars: ✭ 89 (+368.42%)
Mutual labels:  feathersjs
gofast
High performance transport protocol for distributed applications.
Stars: ✭ 19 (+0%)
Mutual labels:  socketio
revai-python-sdk
Rev AI Python SDK
Stars: ✭ 35 (+84.21%)
Mutual labels:  realtime
UnityR
Unity3D, SignalR real-time multiplayer game
Stars: ✭ 49 (+157.89%)
Mutual labels:  realtime
Moonshine-IDE
Moonshine is a free and open source middleweight IDE built with ActionScript 3 for ActionScript 3, Apache Flex®, Apache Royale™, and Feathers development, with Cloud and Desktop support.
Stars: ✭ 86 (+352.63%)
Mutual labels:  feathers
feathers-swift
FeathersJS Swift SDK, written with love.
Stars: ✭ 51 (+168.42%)
Mutual labels:  feathers

🐦 flutter_feathersjs 🐦

GitHub Repo stars pub version GitHub last commit

FlutterFeathersJs Icon
Communicate with your feathers js server from flutter app with unbelieved ease and make happy your customers.


Infos: Feathers js is a node framework for real-time applications and REST APIs.


Simple to use

1. Install it

# Please see https://pub.dev/packages/flutter_feathersjs/install
flutter_feathersjs: ^lastest

2. Import it

// Import it
import 'package:flutter_feathersjs/flutter_feathersjs.dart';

3. Initialize it as single instance

    //your  api baseUrl
    const BASE_URL = "https://flutter-feathersjs.herokuapp.com";

    // Init it globally across your app, maybe with get_it or something like that
    FlutterFeathersjs flutterFeathersjs = FlutterFeathersjs()..init(baseUrl: BASE_URL);

    // Authenticate with email/password
    var response = await flutterFeathersjs.authenticate(userName: user["email"], password: user["password"]);
    print(response);

    // ReAuthenticated with token
    var response = await flutterFeathersjs.reAuthenticate();
    print(response);

    // Get authenticated user
    var response = await flutterFeathersjs.user();

4. Configure and use only socketio or rest client

    // Standalone socket io client
    FlutterFeathersjs socketIOClient = FlutterFeathersjs();

    // Socket.io client
     IO.Socket io = IO.io(BASE_URL);
    socketIOClient.configure(FlutterFeathersjs.socketioClient(io));

    // Auth socketio client 

    var response = await socketIOClient.authenticate(userName: user["email"], password: user["password"]);
    print(response);

    // ReAuth socketio client
    var reAuthResponse = await socketIOClient.reAuthenticate();
    
    // Create a message using socketio standalone client
    var ioResponse = await socketIOClient.service('messages').create({"text": 'A new message'});

    // Get the authenticated user 
    var userResponse = await socketIOClient.user();
    //StandAlone rest client
    FlutterFeathersjs restClient = FlutterFeathersjs();
    Dio dio = Dio(BaseOptions(baseUrl: BASE_URL));
    restClient.configure(FlutterFeathersjs.restClient(dio));


    // Authenticate user using rest client
    var response = await restClient.authenticate( userName: user["email"], password: user["password"]);
      print(response);

    // Reauthenticate user using rest client
    var reAuthResponse = await restClient.reAuthenticate();

    // Call service 
    var restResponse = await restClient.service('messages').create({"text": 'A new message'});


    // Get the authenticated user
    var user = await restClient.user();

You're ready to go: 3, 2, 1 🚀 Checkout the doc for more info.

Documentation

Check it out at: https://dahkenangnon.github.io/flutter_feathersjs.dart/

Support

Please email to dah.kenangnon (at) gmail (dot) com if you have any questions or comments or business support.

Contributing

Please feel free to contribute to this project by opening an issue or creating a pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].