Public Access
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c19d981ad | ||
|
|
2b7b943ea2 |
@@ -23,11 +23,13 @@ For the VBB network in Berlin/Brandenburg
|
||||
this should work for other public transit networks using the HAFAS api, but you will have to test this yourself
|
||||
|
||||
### The build part
|
||||
Create a `.env` in the project root and add
|
||||
Create a `.env` in the project root and add the following to it
|
||||
|
||||
```env
|
||||
VBB_API_KEY=
|
||||
VBB_API_URL=
|
||||
VBB_API_KEY={YOUR_API_KEY}
|
||||
VBB_API_URL={YOUR_API_URL}
|
||||
```
|
||||
|
||||
For local builds and connected devices simply run `flutter run` in your terminal.
|
||||
|
||||
To build for linux:
|
||||
|
||||
+2
-2
@@ -4,12 +4,12 @@ import 'api_handler.dart';
|
||||
import 'transport_helper.dart';
|
||||
import 'dart:async';
|
||||
|
||||
// import 'package:sqflite_common_ffi/sqflite_ffi.dart'; //for testing on desktop
|
||||
import 'package:sqflite_common_ffi/sqflite_ffi.dart'; //for testing on desktop
|
||||
|
||||
void main() async {
|
||||
await dotenv.load();
|
||||
const String dbName = "oeffimasterTransportDb";
|
||||
// databaseFactory = databaseFactoryFfi; // for debugging and desktop test
|
||||
databaseFactory = databaseFactoryFfi; // for debugging and desktop test
|
||||
DbHelper.initDb(dbName);
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user