Resolved issues

This commit is contained in:
thosakwe 2016-11-23 17:21:41 -05:00
parent e8191669c7
commit 359df0bf92
15 changed files with 28 additions and 39 deletions

View file

@ -5,6 +5,7 @@
<excludeFolder url="file://$MODULE_DIR$/.pub" /> <excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/.tmp" /> <excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/bin/packages" /> <excludeFolder url="file://$MODULE_DIR$/bin/packages" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/packages" /> <excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/temp" /> <excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" /> <excludeFolder url="file://$MODULE_DIR$/test/packages" />

View file

@ -25,14 +25,4 @@
</profile-state> </profile-state>
</entry> </entry>
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
</project> </project>

View file

@ -3,7 +3,7 @@ An easily-extensible web server framework in Dart.
[Wiki](https://github.com/angel-dart/angel/wiki) [Wiki](https://github.com/angel-dart/angel/wiki)
[API Documentation](http://www.dartdocs.org/documentation/angel_framework/1.0.0-dev) [API Documentation](http://www.dartdocs.org/documentation/angel_framework/latest)
# About # About
@ -25,18 +25,20 @@ Thus, the third, and perhaps most important goal of the Angel framework is to be
Angel also prioritizes tooling. The app boilerplate is pre-fitted with all the plugins and configuration you need to launch an MVP in a matter of days. There is also Swagger code generator in the works. The rest is just implementation detail for you. No need to worry about the following: Angel also prioritizes tooling. The app boilerplate is pre-fitted with all the plugins and configuration you need to launch an MVP in a matter of days. There is also Swagger code generator in the works. The rest is just implementation detail for you. No need to worry about the following:
* Mustache * [Mustache](https://github.com/angel-dart/mustache)
* MongoDB * [MongoDB](https://github.com/angel-dart/mongo)
* Seeding * [Seeding](https://github.com/angel-dart/seeder)
* Angular2 Client * Angular2 Client
* Static File Server * [Static File Server](https://github.com/angel-dart/static)
* Load Balancing * [Proxy Forwarding](https://github.com/angel-dart/proxy)
* Authentication * [Load Balancing](https://github.com/angel-dart/multiserver)
* REST and WebSockets (client and server) * [Authentication](https://github.com/angel-dart/auth)
* Server daemon * [REST](https://github.com/angel-dart/client) (client and server)
* Command-line code generators * [WebSockets](https://github.com/angel-dart/websocket) (client and server)
* Diagnostics and Logging * [Server daemon](https://github.com/angel-dart/dartd)
* Configuration (client and server) * [Command-line code generators](https://github.com/angel-dart/cli)
* [Diagnostics and Logging](https://github.com/angel-dart/diagnostics)
* [Configuration](https://github.com/angel-dart/configuration) (client and server)
It's all taken care of for you. It's all taken care of for you.
@ -56,6 +58,6 @@ Thank you for using this library. I hope you like it. I have put months of effor
into Angel. into Angel.
Feel free to follow me on Twitter: Feel free to follow me on Twitter:
[@thosakwe](http://twitter.com/thosakwe) [@_wapaa_](http://twitter.com/_wapaa_)
Or, check out [my blog](http://blog.thosakwe.com) Or, check out [my blog](http://blog.thosakwe.com).

View file

@ -1 +0,0 @@
../packages

View file

@ -13,6 +13,7 @@ main() async {
startServer() async { startServer() async {
var app = await createServer(); var app = await createServer();
app.normalize();
var dateFormat = new DateFormat("y-MM-dd"); var dateFormat = new DateFormat("y-MM-dd");
var logFile = new File("logs/${dateFormat.format(new DateTime.now())}.txt"); var logFile = new File("logs/${dateFormat.format(new DateTime.now())}.txt");
var host = new InternetAddress(app.properties['host']); var host = new InternetAddress(app.properties['host']);

View file

@ -1,6 +1,4 @@
# Default server configuration. # Default server configuration.
host: 127.0.0.1
mongo_db: mongodb://localhost:27017/angel
db: db:
migrate: migrate:
database: angel database: angel
@ -10,3 +8,6 @@ db:
database: angel database: angel
username: username username: username
password: password password: password
host: 127.0.0.1
mongo_db: mongodb://localhost:27017/angel
port: 3000

View file

@ -1,2 +1,2 @@
# Development-only server configuration. # Development-only server configuration.
port: 3000 debug: true

View file

@ -1,2 +1,2 @@
# Production-only server configuration # Production-only server configuration
port: 80 debug: false

View file

@ -29,9 +29,8 @@ class AuthController extends Controller {
// Wire up local authentication, connected to our User service // Wire up local authentication, connected to our User service
_auth.serializer = _serializer; _auth.serializer = _serializer;
_auth.deserializer = _deserializer; _auth.deserializer = _deserializer;
_auth.strategies.add(new LocalAuthStrategy( _auth.strategies
_verifier(app.container.make(UserService)), .add(new LocalAuthStrategy(_verifier(app.container.make(UserService))));
forceBasic: true));
await super.call(app); await super.call(app);
await app.configure(_auth); await app.configure(_auth);

View file

@ -10,7 +10,7 @@ configureBefore(Angel app) async {}
/// Put your app routes here! /// Put your app routes here!
configureRoutes(Angel app) async { configureRoutes(Angel app) async {
app.get('/', (req, ResponseContext res) => res.render('hello')); app.get('/', (req, ResponseContext res) => res.render('hello'));
app.all('*', serveStatic()); app.all('*', new VirtualDirectory());
} }
configureAfter(Angel app) async { configureAfter(Angel app) async {

View file

@ -11,7 +11,7 @@ dependencies:
angel_framework: ^1.0.0-dev angel_framework: ^1.0.0-dev
angel_mongo: ^1.0.0-dev angel_mongo: ^1.0.0-dev
angel_mustache: ^1.0.0-dev angel_mustache: ^1.0.0-dev
angel_static: ^1.0.0 angel_static: ^1.1.0-dev
json_god: ^2.0.0-beta json_god: ^2.0.0-beta
mailer: ^1.1.0+4 mailer: ^1.1.0+4
validate: ^1.5.2 validate: ^1.5.2

View file

@ -1 +0,0 @@
../packages

View file

@ -1 +0,0 @@
../../packages

View file

@ -1 +0,0 @@
../packages

View file

@ -1 +0,0 @@
../packages