Skip to main content
Module

x/fastro/core/constant.ts

Fast and simple web application framework for deno
Go to Latest
File
// Copyright 2020 - 2021 the Fastro author. All rights reserved. MIT license.
export const DENO_VERSION = "1.7.4";export const FASTRO_VERSION = "0.30.44";export const MODULE_DIR = "module";export const CONTROLLER_FILE = ".controller.ts";export const PAGE_FILE = ".page.tsx";export const STATIC_DIR = "public";export const TEMPLATE_FILE = ".template.html";export const TEMPLATE_DIR = "module";export const MIDDLEWARE_DIR = "middleware";export const MAX_MEMORY = 1024 * 1024;export const VSCODE_DIR = ".vscode";export const TIMEOUT = 12 * 1000;export const RUNNING_TEXT = "HTTP webserver running. Access it at";export const HOSTNAME = "0.0.0.0";export const PORT = 3000;export const NO_CONFIG = "Start with no config";export const NO_SERVICE = "Start with no service";export const NO_MIDDLEWARE = "Start with no middleware";export const NO_TEMPLATE = "Start with no html template";export const NO_STATIC_FILE = "Start with no static file";export const NO_DEPS = "Start with no deps";export const NOT_FOUND = "not found";export const SRVC_TYPE_PAGE = "page";export const SRVC_TYPE_SERVICE = "service";export const TEST_ENV = "test";export const DENO_ENV = "DENO_ENV";export const DEV_ENV = "development";export const CONTENT_TYPE = "content-type";export const CONTAINER = "container.ts";export const APPS = "https://raw.githubusercontent.com/fastrojs/app/main/app.yml";export const REACT_ROOT = `<div id="root"></div>`;