Where should I put my dart files if they are the server side files of restful api providers?

Issue I’m trying to use start to write some restful apis for clients. The content is looking like: import ‘package:start/start.dart’; import ‘myfile1.dart’; import ‘myfile2.dart’; import ‘myfile3.dart’; import ‘myfile4.dart’; void main() { start(public: ‘web’, port: 3000).then((Server app) { app.get(‘/’).listen((request) { request.response

Continue reading

Why can't I run a dart file inside a dir?

Issue I have a simple dart project, it has file structure like: darttest tree . ├── packages │   ├── browser -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/browser-0.5.20/lib │   ├── meta -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/meta-0.5.20/lib │   ├── start -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/start-0.0.8/lib │   └── unittest -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/unittest-0.5.20/lib ├── pubspec.lock ├──

Continue reading

Dart: structuring assets

Issue I just read Dart’s article on Assets and Transformers and want to make sure I am understanding the correct way of structuring your asset directory. Say my project name is MyApp, and it should produce – after cross-compiling –

Continue reading

Dart: web vs web/src

Issue I just read Dart’s recommended package layout and am confused on one thing: what content goes in the web package, and what content goes in web/src? Solution Package layout recommendation doesn’t include anything about web/src only lib/src as far

Continue reading

Where should I put my dart files if they are the server side files of restful api providers?

Issue I’m trying to use start to write some restful apis for clients. The content is looking like: import ‘package:start/start.dart’; import ‘myfile1.dart’; import ‘myfile2.dart’; import ‘myfile3.dart’; import ‘myfile4.dart’; void main() { start(public: ‘web’, port: 3000).then((Server app) { app.get(‘/’).listen((request) { request.response

Continue reading

Why can't I run a dart file inside a dir?

Issue I have a simple dart project, it has file structure like: darttest tree . ├── packages │   ├── browser -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/browser-0.5.20/lib │   ├── meta -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/meta-0.5.20/lib │   ├── start -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/start-0.0.8/lib │   └── unittest -> /Users/freewind/.pub-cache/hosted/pub.dartlang.org/unittest-0.5.20/lib ├── pubspec.lock ├──

Continue reading