Compare commits
No commits in common. '5f33f72172e8f677455e554b57eae091eda1472b' and '95d34d6ad3afa9f912f4b424bdc68ee38a2d6c74' have entirely different histories.
5f33f72172
...
95d34d6ad3
@ -0,0 +1,7 @@
|
|||||||
|
DATON_LOGGING_LEVEL=6
|
||||||
|
APP_NAME="My First Daton App!"
|
||||||
|
|
||||||
|
DB_USERNAME=garrettmills
|
||||||
|
DB_PASSWORD=garrettmills
|
||||||
|
DB_DATABASE=garrettmills
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
.idea*
|
@ -1,6 +1,9 @@
|
|||||||
<html>
|
<html>
|
||||||
{{> header }}
|
{{> header }}
|
||||||
<body>
|
<body>
|
||||||
<h1>{{ greeting }} from Daton!</h1>
|
<div class="container">
|
||||||
|
<h1>Welcome to Daton</h1>
|
||||||
|
<h2>Daton is an opinionated application framework for Deno</h2>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,3 +1,37 @@
|
|||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<title>Daton</title>
|
<title>Daton</title>
|
||||||
|
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,500" rel="stylesheet">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html, body {
|
||||||
|
background-color: #F2F4FF;
|
||||||
|
color: #36453B;
|
||||||
|
font-family: 'Quicksand', sans-serif;
|
||||||
|
font-weight: 500;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container h2 {
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export * from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/module.ts'
|
export * from 'daton-lib/module.ts'
|
||||||
export * from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/di/module.ts'
|
export * from 'daton/di/module.ts'
|
||||||
|
|
||||||
import * as std from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/external/std.ts'
|
import * as std from 'daton-external/std.ts'
|
||||||
export { std }
|
export { std }
|
||||||
|
|
||||||
export * as Daton from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/mod.ts'
|
export * as Daton from 'daton-lib/mod.ts'
|
||||||
|
@ -1 +1 @@
|
|||||||
export * from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/orm/src/module.ts'
|
export * from 'daton-orm/module.ts'
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
export { default as ConfigUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Config.ts'
|
export { default as ConfigUnit } from 'daton-lib/unit/Config.ts'
|
||||||
export { DatabaseUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/orm/src/DatabaseUnit.ts'
|
export { DatabaseUnit } from 'daton-orm/DatabaseUnit.ts'
|
||||||
export { default as ControllerUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Controllers.ts'
|
export { default as ControllerUnit } from 'daton-lib/unit/Controllers.ts'
|
||||||
export { default as MiddlewareUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Middlewares.ts'
|
export { default as MiddlewareUnit } from 'daton-lib/unit/Middlewares.ts'
|
||||||
export { default as RoutesUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Routes.ts'
|
export { default as RoutesUnit } from 'daton-lib/unit/Routes.ts'
|
||||||
export { default as HttpKernelUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/HttpKernel.ts'
|
export { default as HttpKernelUnit } from 'daton-lib/unit/HttpKernel.ts'
|
||||||
export { default as ModelsUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/orm/src/ModelsUnit.ts'
|
export { default as ModelsUnit } from 'daton-orm/ModelsUnit.ts'
|
||||||
export { default as HttpServerUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/HttpServer.ts'
|
export { default as HttpServerUnit } from 'daton-lib/unit/HttpServer.ts'
|
||||||
export { default as RoutingUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Routing.ts'
|
export { default as RoutingUnit } from 'daton-lib/unit/Routing.ts'
|
||||||
export { default as ServicesUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/Services.ts'
|
export { default as ServicesUnit } from 'daton-lib/unit/Services.ts'
|
||||||
export { default as ViewEngineUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/ViewEngine.ts'
|
export { default as ViewEngineUnit } from 'daton-lib/unit/ViewEngine.ts'
|
||||||
export { default as DatonMiddlewareUnit } from 'https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/unit/DatonMiddleware.ts'
|
export { default as DatonMiddlewareUnit } from 'daton-lib/unit/DatonMiddleware.ts'
|
||||||
|
export { default as CLIAppUnit } from 'daton-cli/CLIAppUnit.ts'
|
||||||
|
export { default as CLIUnit } from 'daton-cli/CLIUnit.ts'
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env -S deno run -c ./tsconfig.json --unstable --allow-read --allow-env --allow-net --importmap=./import-map.json
|
||||||
|
/* Main executable for the Daton app. */
|
||||||
|
|
||||||
|
import { make, Scaffolding, Application } from './bundle/daton.ts'
|
||||||
|
import { CLIAppUnit } from './bundle/daton_units.ts'
|
||||||
|
import units from './units.ts'
|
||||||
|
|
||||||
|
units.pop()
|
||||||
|
units.push(CLIAppUnit)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Let's get up and running. The scaffolding provides the bare minimum
|
||||||
|
* amount of support required to get Daton up and running. The app handles
|
||||||
|
* the rest.
|
||||||
|
*
|
||||||
|
* Daton will automatically load and process application resources, which is
|
||||||
|
* why we need to pass in the base path of this script.
|
||||||
|
*/
|
||||||
|
const scaffolding = make(Scaffolding, import.meta.url)
|
||||||
|
await scaffolding.up()
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Now, import the units and start the application. The units define each
|
||||||
|
* modular piece of functionality that is managed by the Daton app.
|
||||||
|
*/
|
||||||
|
const app = make(Application, units)
|
||||||
|
await app.run()
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"daton/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/",
|
||||||
|
"daton-lib/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/",
|
||||||
|
"daton-di/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/di/src/",
|
||||||
|
"daton-orm/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/orm/src/",
|
||||||
|
"daton-cli/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/cli/src/",
|
||||||
|
"daton-external/": "https://code.garrettmills.dev/garrettmills/daton/raw/branch/master/lib/src/external/"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"daton/": "file:///home/garrettmills/Projects/daton/",
|
||||||
|
"daton-lib/": "file:///home/garrettmills/Projects/daton/lib/src/",
|
||||||
|
"daton-di/": "file:///home/garrettmills/Projects/daton/di/src/",
|
||||||
|
"daton-orm/": "file:///home/garrettmills/Projects/daton/orm/src/",
|
||||||
|
"daton-cli/": "file:///home/garrettmills/Projects/daton/cli/src/",
|
||||||
|
"daton-external/": "file:///home/garrettmills/Projects/daton/lib/src/external/"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue