Updated ORM template

This commit is contained in:
thomashii 2021-09-25 18:45:23 +08:00
parent 7401143635
commit 3b67c9670d
6 changed files with 41 additions and 41 deletions

View file

@ -6,3 +6,4 @@
* Updated to support NNBD * Updated to support NNBD
* Updated README * Updated README
* Updated default `postgresql` setup * Updated default `postgresql` setup
* Updated linter to `package:lints`

42
LICENSE
View file

@ -1,21 +1,29 @@
The MIT License (MIT) BSD 3-Clause License
Copyright (c) 2021 dukefirehawk.com Copyright (c) 2021, dukefirehawk.com
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Redistribution and use in source and binary forms, with or without
of this software and associated documentation files (the "Software"), to deal modification, are permitted provided that the following conditions are met:
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all 1. Redistributions of source code must retain the above copyright notice, this
copies or substantial portions of the Software. list of conditions and the following disclaimer.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2. Redistributions in binary form must reproduce the above copyright notice,
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, this list of conditions and the following disclaimer in the documentation
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE and/or other materials provided with the distribution.
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 3. Neither the name of the copyright holder nor the names of its
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE contributors may be used to endorse or promote products derived from
SOFTWARE. this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,6 +1,6 @@
# ORM Starter Application for Angel3 framework # ORM Starter Application for Angel3 framework
This is an ORM starter application for [Angel3 framework](https://pub.dartlang.org/packages/angel3_framework) which is a full-stack Web framework in Dart. The default database is `postgresql`. `mysql` support is still in active development. This is an ORM starter application for [Angel3 framework](https://angel3-framework.web.app) which is a full-stack Web framework in Dart. The default database is `postgresql`. `mysql` support is still in active development.
## Installation & Setup ## Installation & Setup
@ -57,8 +57,6 @@ This is an ORM starter application for [Angel3 framework](https://pub.dartlang.o
Visit the [Developer Guide](https://angel3-docs.dukefirehawk.com/guides) for dozens of guides and resources, including video tutorials, to get up and running as quickly as possible with Angel3. Visit the [Developer Guide](https://angel3-docs.dukefirehawk.com/guides) for dozens of guides and resources, including video tutorials, to get up and running as quickly as possible with Angel3.
Examples and complete projects can be found [here](https://github.com/dukefirehawk/angel3-examples). Examples and complete projects can be found [here](https://angel3-framework.web.app/#/examples).
You can also view the [API Documentation](https://pub.dev/documentation/angel3_framework/latest/). You can also view the [API Documentation](https://pub.dev/documentation/angel3_framework/latest/).
There is also an [Awesome Angel :fire:](https://github.com/dukefirehawk/angel3-awesome) list.

View file

@ -1,8 +1 @@
include: package:pedantic/analysis_options.yaml include: package:lints/recommended.yaml
analyzer:
strong-mode:
implicit-casts: false
linter:
rules:
- unnecessary_const
- unnecessary_new

View file

@ -1,6 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:angel/angel.dart'; import 'package:angel/angel.dart';
import 'package:angel3_pretty_logging/angel3_pretty_logging.dart'; import 'package:belatuk_pretty_logging/belatuk_pretty_logging.dart';
import 'package:angel3_container/mirrors.dart'; import 'package:angel3_container/mirrors.dart';
import 'package:angel3_framework/angel3_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_hot/angel3_hot.dart'; import 'package:angel3_hot/angel3_hot.dart';

View file

@ -6,29 +6,29 @@ environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies:
angel3_auth: ^4.0.0 angel3_auth: ^4.0.0
angel3_configuration: ^4.0.0 angel3_configuration: ^4.1.0
angel3_framework: ^4.1.0 angel3_framework: ^4.2.0
angel3_jael: ^4.0.0 angel3_jael: ^4.2.0
angel3_migration: ^4.0.0 angel3_migration: ^4.0.0
angel3_orm: ^4.0.0 angel3_orm: ^4.0.0
angel3_orm_postgres: ^3.0.0 angel3_orm_postgres: ^3.0.0
angel3_serialize: ^4.0.0 angel3_serialize: ^4.1.0
angel3_production: ^3.0.0 angel3_production: ^3.1.0
angel3_static: ^4.0.0 angel3_static: ^4.1.0
angel3_validate: ^4.0.0 angel3_validate: ^4.0.0
angel3_pretty_logging: ^3.0.0 belatuk_pretty_logging: ^4.0.0
optional: ^6.0.0 optional: ^6.0.0
logging: ^1.0.0 logging: ^1.0.0
dev_dependencies: dev_dependencies:
angel3_hot: ^4.1.0 angel3_hot: ^4.2.0
angel3_migration_runner: ^4.0.0 angel3_migration_runner: ^4.0.0
angel3_orm_generator: ^4.1.0 angel3_orm_generator: ^4.1.0
angel3_serialize_generator: ^4.1.0 angel3_serialize_generator: ^4.2.0
angel3_test: ^4.0.0 angel3_test: ^4.0.0
build_runner: ^2.0.3 build_runner: ^2.0.3
io: ^1.0.0 io: ^1.0.0
pedantic: ^1.11.0 test: ^1.17.5
test: ^1.17.7 lints: ^1.0.0