swift_server 0.4.0 copy "swift_server: ^0.4.0" to clipboard
swift_server: ^0.4.0 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

swift_server #

Simple Micro Service 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

Development Info #

Running example server:

dart run build_runner build && dart example/raw_server.dart --config test/config.yaml

Running tests: #

To run tests you will need amqp and database services. Please see / modify test/config.yaml with proper configuration.

On debian you can install services by:

apt install rabbitmq-server mariadb-server

Then create proper DB schema in database:

CREATE DATABASE IF NOT EXISTS `swift_test`;
CREATE USER IF NOT EXISTS 'swift_test'@'%' IDENTIFIED BY 'swift_test';
GRANT ALL PRIVILEGES ON `swift_test`.* TO 'swift_test'@'%';

Run queries in config/schema.sql to create schema.

Lastly run tests:

dart run build_runner build
dart test/swift_server_test.dart
1
likes
160
points
152
downloads

Publisher

verified publisherswift.shop

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

args, dart_amqp, influxdb_client, mailer, mysql_client_plus, path, redis, swift_composer, yaml

More

Packages that depend on swift_server