Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112602
app.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
app.ts
View Options
import
_locreq
from
"locreq"
;
import
{
resolve
}
from
"path"
;
import
{
App
}
from
"sealious"
;
import
tasks
from
"./collections/tasks"
;
const
locreq
=
_locreq
(
__dirname
);
const
PORT
=
process
.
env
.
SEALIOUS_PORT
?
parseInt
(
process
.
env
.
SEALIOUS_PORT
)
:
8080
;
const
base_url
=
process
.
env
.
SEALIOUS_BASE_URL
||
`http://localhost:
${
PORT
}
`
;
console
.
log
(
process
.
env
);
export
default
class
TheApp
extends
App
{
config
=
{
upload_path
:
locreq
.
resolve
(
"uploaded_files"
),
datastore_mongo
:
{
host
:
"localhost"
,
port
:
20723
,
db_name
:
"sealious-playground"
,
},
email
:
{
from_address
:
"sealious-playground@example.com"
,
from_name
:
"Sealious playground app"
,
},
logger
:
{
level
:
<
const
>
"info"
,
},
"www-server"
:
{
port
:
PORT
,
},
};
manifest
=
{
name
:
"Sealious Playground"
,
logo
:
resolve
(
__dirname
,
"../assets/logo.png"
),
version
:
"0.0.1"
,
default_language
:
"en"
,
base_url
,
admin_email
:
"admin@example.com"
,
colors
:
{
primary
:
"#5294a1"
,
},
};
collections
=
{
...
App
.
BaseCollections
,
tasks
,
};
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Thu, Jul 3, 22:28 (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
799729
Default Alt Text
app.ts (1 KB)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment