swift_server 0.2.1 swift_server: ^0.2.1 copied to clipboard
Simple microservices framework using swift_composer. Create servers, daemons and cli tools with a layer to access mysql db, amqp and files. Used by https://swift.shop
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add swift_server
With Flutter:
$ flutter pub add swift_server
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
swift_server: ^0.2.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:swift_server/builtin_actions.dart';
import 'package:swift_server/cli.dart';
import 'package:swift_server/config.dart';
import 'package:swift_server/daemon.dart';
import 'package:swift_server/error_handler.dart';
import 'package:swift_server/http_status_codes.dart';
import 'package:swift_server/queues.dart';
import 'package:swift_server/server.dart';
import 'package:swift_server/stats.dart';
import 'package:swift_server/testsuite.dart';
import 'package:swift_server/tools.dart';