Coder Social home page Coder Social logo

agostinofiscale / medusa-js-dart Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 631 KB

A Dart client library for MedusaJS, providing a seamless way for Dart and Flutter developers to interact with MedusaJS services.

License: MIT License

Dart 100.00%

medusa-js-dart's Introduction

MedusaJS Client for Dart

A Dart client library for MedusaJS, providing a seamless way for Dart and Flutter developers to interact with MedusaJS services.

This library is designed to match the functionality of its JavaScript counterpart, offering a comprehensive suite of features tailored for e-commerce applications.

Badges

style: lint

Features

  • User Authentication: Enables multiple authentication strategies, including API keys and OAuth tokens, to secure your e-commerce applications.

  • API Interaction: Provides complete access to the MedusaJS API endpoints, allowing for robust management and operation of your store.

  • Data Types and Models: Offers strongly-typed Dart classes for all MedusaJS data types, enhancing type safety and development efficiency.

Documentation

While there is currently no dedicated documentation for this Dart client, you can refer to the JavaScript client documentation as the functionality closely aligns. Additionally, explore the API reference for detailed information on the available endpoints.

Installation

Install medusa-js-dart using pub:

  Coming soon...

Usage/Examples

To start using the MedusaJS Client in your Dart or Flutter project, follow these steps:

  1. Import the library in your Dart or Flutter project:
import 'package:medusa_js_dart/medusa_js_dart.dart';
  1. Initialize the client with your server's details:
final Configuration configuration = Configuration(
  baseUrl: 'http://localhost:9000',
  maxRetries: 3,
);

final Medusa medusa = Medusa(configuration);
  1. Make requests as needed:
final AdminAuthRes response = await medusa.admin.auth.createSession(
  AdminPostAuthReq(
    '[email protected]',
    'password',
  ),
);

print(response.user);

License

MIT

medusa-js-dart's People

Contributors

agostinofiscale avatar

Stargazers

Rakshith Vikramaj avatar Atakan Atik avatar Dumb Dev avatar  avatar Dunccan de Weerdt avatar Salvatore Liccardo avatar Mohammed Ragheb avatar

Watchers

 avatar

Forkers

aeversil

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.