@seip/bluebird-js 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env_example +53 -53
- package/AGENTS.md +426 -403
- package/LICENSE +1 -1
- package/README.md +292 -285
- package/app/routes/api.js +50 -50
- package/app/routes/web.js +55 -53
- package/app/views/about.js +63 -0
- package/app/views/dashboard.js +147 -0
- package/app/views/index.js +80 -0
- package/app/views/layouts/main/view.js +81 -0
- package/app/views/legal/terms.html +19 -0
- package/app/views/login.js +80 -0
- package/core/app.d.ts +18 -18
- package/core/app.js +684 -644
- package/core/auth.d.ts +13 -13
- package/core/auth.js +326 -326
- package/core/cache.d.ts +17 -17
- package/core/cache.js +475 -475
- package/core/cli/doctor.js +287 -287
- package/core/cli/ecosystem.js +162 -162
- package/core/cli/init.js +779 -779
- package/core/cli/migrate.js +541 -541
- package/core/cli/model.js +66 -66
- package/core/cli/nginx.js +199 -199
- package/core/cli/route.js +120 -120
- package/core/cli/view.js +55 -36
- package/core/config.d.ts +3 -3
- package/core/config.js +111 -111
- package/core/csrf.d.ts +3 -3
- package/core/csrf.js +114 -114
- package/core/database.d.ts +15 -15
- package/core/database.js +636 -636
- package/core/debug.d.ts +3 -3
- package/core/debug.js +249 -249
- package/core/hash.d.ts +3 -3
- package/core/hash.js +194 -194
- package/core/html.d.ts +42 -0
- package/core/html.js +217 -0
- package/core/index.d.ts +1176 -1071
- package/core/logger.d.ts +3 -3
- package/core/logger.js +127 -124
- package/core/middleware.d.ts +3 -3
- package/core/middleware.js +28 -28
- package/core/model.d.ts +19 -19
- package/core/model.js +600 -600
- package/core/queue.d.ts +13 -13
- package/core/queue.js +172 -172
- package/core/ratelimit.d.ts +3 -3
- package/core/ratelimit.js +145 -145
- package/core/redis.d.ts +21 -21
- package/core/redis.js +230 -230
- package/core/render-cache.js +212 -0
- package/core/render.d.ts +3 -3
- package/core/render.js +199 -555
- package/core/router.d.ts +3 -3
- package/core/router.js +171 -171
- package/core/seo.d.ts +3 -3
- package/core/seo.js +106 -106
- package/core/swagger.d.ts +3 -3
- package/core/swagger.js +60 -60
- package/core/upload.d.ts +13 -13
- package/core/upload.js +102 -102
- package/core/util/colors.js +82 -82
- package/core/validate.d.ts +15 -15
- package/core/validate.js +364 -364
- package/core/view-loader.js +162 -0
- package/core/vite.d.ts +3 -3
- package/core/vite.js +145 -145
- package/core/ws.d.ts +13 -13
- package/core/ws.js +245 -245
- package/index.js +18 -18
- package/jsconfig.json +15 -15
- package/package.json +85 -86
- package/production.md +273 -273
- package/public/css/bluebird.min.css +1 -1
- package/public/js/bluebird-client.js +1780 -1662
- package/public/js/bluebird.min.js +1072 -1072
- package/app/views/about.html +0 -161
- package/app/views/dashboard.html +0 -140
- package/app/views/index.html +0 -150
- package/app/views/login.html +0 -144
package/.env_example
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
# Server and Application Configuration
|
|
2
|
-
DEBUG=true
|
|
3
|
-
PORT=3000
|
|
4
|
-
HOST="localhost"
|
|
5
|
-
APP_URL="http://localhost:3000"
|
|
6
|
-
VERSION="1.0.0"
|
|
7
|
-
|
|
8
|
-
# Application Metadata
|
|
9
|
-
TITLE="Bluebird Application"
|
|
10
|
-
DESCRIPTION="Bluebird.js Web and API Project"
|
|
11
|
-
|
|
12
|
-
# Security Configuration
|
|
13
|
-
JWT_SECRET="CHANGE_ME_TO_A_LONG_RANDOM_STRING_AT_LEAST_32_CHARS"
|
|
14
|
-
|
|
15
|
-
# Cache Configuration
|
|
16
|
-
# Options: "memory" (fast in-process LRU, default), "file" (filesystem cache fallback), "redis" (distributed cache), "none" (disabled)
|
|
17
|
-
CACHE_MODE="memory"
|
|
18
|
-
CACHE_MAX_KEYS=1000
|
|
19
|
-
|
|
20
|
-
# Redis Configuration (Used when CACHE_MODE="redis" or passing { driver: "redis" })
|
|
21
|
-
REDIS_HOST="localhost"
|
|
22
|
-
REDIS_PORT=6379
|
|
23
|
-
REDIS_PASSWORD=""
|
|
24
|
-
|
|
25
|
-
# PM2 Clustering Configuration
|
|
26
|
-
PM2_APP_NAME="bluebird-app"
|
|
27
|
-
PM2_INSTANCES=1
|
|
28
|
-
PM2_MAX_MEMORY="512M"
|
|
29
|
-
|
|
30
|
-
# Render Cache Configuration
|
|
31
|
-
RENDER_CACHE_TTL=300
|
|
32
|
-
RENDER_CACHE_MAX=500
|
|
33
|
-
|
|
34
|
-
# Database Configuration
|
|
35
|
-
# SQLite (Default - native node:sqlite with WAL mode)
|
|
36
|
-
DB_TYPE="sqlite"
|
|
37
|
-
DB_FILE="database/blue_bird.db"
|
|
38
|
-
DATABASE_URL="sqlite:database/blue_bird.db"
|
|
39
|
-
|
|
40
|
-
# MySQL (Uncomment to use MySQL)
|
|
41
|
-
# DB_TYPE="mysql"
|
|
42
|
-
# DB_NAME="blue_bird"
|
|
43
|
-
# DB_USER="root"
|
|
44
|
-
# DB_PASSWORD="root"
|
|
45
|
-
# DB_PORT=3306
|
|
46
|
-
# DATABASE_URL="mysql://root:root@localhost:3306/blue_bird"
|
|
47
|
-
|
|
48
|
-
# PostgreSQL (Uncomment to use PostgreSQL)
|
|
49
|
-
# DB_TYPE="postgres"
|
|
50
|
-
# DB_NAME="blue_bird"
|
|
51
|
-
# DB_USER="postgres"
|
|
52
|
-
# DB_PASSWORD="root"
|
|
53
|
-
# DB_PORT=5432
|
|
1
|
+
# Server and Application Configuration
|
|
2
|
+
DEBUG=true
|
|
3
|
+
PORT=3000
|
|
4
|
+
HOST="localhost"
|
|
5
|
+
APP_URL="http://localhost:3000"
|
|
6
|
+
VERSION="1.0.0"
|
|
7
|
+
|
|
8
|
+
# Application Metadata
|
|
9
|
+
TITLE="Bluebird Application"
|
|
10
|
+
DESCRIPTION="Bluebird.js Web and API Project"
|
|
11
|
+
|
|
12
|
+
# Security Configuration
|
|
13
|
+
JWT_SECRET="CHANGE_ME_TO_A_LONG_RANDOM_STRING_AT_LEAST_32_CHARS"
|
|
14
|
+
|
|
15
|
+
# Cache Configuration
|
|
16
|
+
# Options: "memory" (fast in-process LRU, default), "file" (filesystem cache fallback), "redis" (distributed cache), "none" (disabled)
|
|
17
|
+
CACHE_MODE="memory"
|
|
18
|
+
CACHE_MAX_KEYS=1000
|
|
19
|
+
|
|
20
|
+
# Redis Configuration (Used when CACHE_MODE="redis" or passing { driver: "redis" })
|
|
21
|
+
REDIS_HOST="localhost"
|
|
22
|
+
REDIS_PORT=6379
|
|
23
|
+
REDIS_PASSWORD=""
|
|
24
|
+
|
|
25
|
+
# PM2 Clustering Configuration
|
|
26
|
+
PM2_APP_NAME="bluebird-app"
|
|
27
|
+
PM2_INSTANCES=1
|
|
28
|
+
PM2_MAX_MEMORY="512M"
|
|
29
|
+
|
|
30
|
+
# Render Cache Configuration
|
|
31
|
+
RENDER_CACHE_TTL=300
|
|
32
|
+
RENDER_CACHE_MAX=500
|
|
33
|
+
|
|
34
|
+
# Database Configuration
|
|
35
|
+
# SQLite (Default - native node:sqlite with WAL mode)
|
|
36
|
+
DB_TYPE="sqlite"
|
|
37
|
+
DB_FILE="database/blue_bird.db"
|
|
38
|
+
DATABASE_URL="sqlite:database/blue_bird.db"
|
|
39
|
+
|
|
40
|
+
# MySQL (Uncomment to use MySQL)
|
|
41
|
+
# DB_TYPE="mysql"
|
|
42
|
+
# DB_NAME="blue_bird"
|
|
43
|
+
# DB_USER="root"
|
|
44
|
+
# DB_PASSWORD="root"
|
|
45
|
+
# DB_PORT=3306
|
|
46
|
+
# DATABASE_URL="mysql://root:root@localhost:3306/blue_bird"
|
|
47
|
+
|
|
48
|
+
# PostgreSQL (Uncomment to use PostgreSQL)
|
|
49
|
+
# DB_TYPE="postgres"
|
|
50
|
+
# DB_NAME="blue_bird"
|
|
51
|
+
# DB_USER="postgres"
|
|
52
|
+
# DB_PASSWORD="root"
|
|
53
|
+
# DB_PORT=5432
|
|
54
54
|
# DATABASE_URL="postgresql://postgres:root@localhost:5432/blue_bird?schema=public"
|