Initial framework in place, non-functional POST & env vars atm

This commit is contained in:
Finn 2019-05-08 19:54:14 +01:00
parent 3bc940063a
commit 5c718fc14b
No known key found for this signature in database
GPG key ID: 7455B4B17685B598
29 changed files with 1263 additions and 170 deletions

6
lib/env/dev.dart vendored Normal file
View file

@ -0,0 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
part 'dev.g.dart';
@JsonLiteral('dev.json', asConst: true)
Map<String, dynamic> get config => _$configJsonLiteral;

13
lib/env/dev.g.dart vendored Normal file
View file

@ -0,0 +1,13 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'dev.dart';
// **************************************************************************
// JsonLiteralGenerator
// **************************************************************************
const _$configJsonLiteral = {
'env': 'DEV',
'production': false,
'apiUrl': 'https://dev.peartrade.org/api'
};

5
lib/env/dev.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"env": "DEV",
"production": false,
"apiUrl": "https://dev.peartrade.org/api"
}

6
lib/env/prod.dart vendored Normal file
View file

@ -0,0 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
part 'prod.g.dart';
@JsonLiteral('prod.json', asConst: true)
Map<String, dynamic> get config => _$configJsonLiteral;

13
lib/env/prod.g.dart vendored Normal file
View file

@ -0,0 +1,13 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'prod.dart';
// **************************************************************************
// JsonLiteralGenerator
// **************************************************************************
const _$configJsonLiteral = {
'env': 'PROD',
'production': true,
'apiUrl': 'https://www.peartrade.org/api'
};

5
lib/env/prod.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"env": "PROD",
"production": true,
"apiUrl": "https://www.peartrade.org/api"
}