unpub 1.1.0 copy "unpub: ^1.1.0" to clipboard
unpub: ^1.1.0 copied to clipboard

outdated

A self-hosted private Dart Pub server for Enterprise, with a simple web interface to search and view packages information.

example/main.dart

import 'package:unpub/unpub.dart' as unpub;

main(List<String> args) async {
  var basedir = '/path/to/basedir'; // Base directory to save pacakges
  var db = 'mongodb://localhost:27017/dart_pub'; // MongoDB uri

  var metaStore = unpub.MongoStore(db);
  await metaStore.db.open();

  var packageStore = unpub.FileStore(basedir);

  var app = unpub.App(
    metaStore: metaStore,
    packageStore: packageStore,
  );

  var server = await app.serve('0.0.0.0', 4000);
  print('Serving at http://${server.address.host}:${server.port}');
}
95
likes
0
pub points
63%
popularity

Publisher

verified publisheropensource.bytedance.com

A self-hosted private Dart Pub server for Enterprise, with a simple web interface to search and view packages information.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, args, googleapis, http, http_parser, intl, json_annotation, logging, meta, mime, mongo_dart, path, pub_semver, shelf, shelf_router, yaml

More

Packages that depend on unpub