create-backurus-app 1.0.3 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-backurus-app",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "bin": {
5
5
  "create-backurus-app": "./bin/index.js"
6
6
  },
package/template/.env ADDED
@@ -0,0 +1,18 @@
1
+ APP_NAME=Backurus
2
+ APP_PORT=3000
3
+ APP_ENV=development
4
+
5
+ DB_CONNECTION=mysql
6
+ DB_HOST=127.0.0.1
7
+ DB_PORT=3306
8
+ DB_DATABASE=
9
+ DB_USERNAME=root
10
+ DB_PASSWORD=
11
+ JWT_SECRET=supersecretkey
12
+
13
+ REDIS_HOST=127.0.0.1
14
+ REDIS_PORT=6379
15
+
16
+ QUEUE_CONNECTION=sync
17
+ RATE_LIMIT_MAX=100
18
+ RATE_LIMIT_WINDOW_MS=60000
@@ -0,0 +1,16 @@
1
+ APP_NAME=Backurus
2
+ APP_PORT=3000
3
+ APP_ENV=development
4
+
5
+ DB_CONNECTION=mysql
6
+ DB_HOST=localhost
7
+ DB_PORT=3306
8
+ DB_DATABASE=mydb
9
+ DB_USERNAME=root
10
+ DB_PASSWORD=password
11
+ JWT_SECRET=supersecretkey
12
+
13
+ REDIS_HOST=127.0.0.1
14
+ REDIS_PORT=6379
15
+
16
+ QUEUE_CONNECTION=redis
@@ -1,4 +1,6 @@
1
- # Backurus
1
+ # <div align="center"><img src="./docs/images/favicon.png" alt="Backurus logo" width="120" /></div>
2
+
3
+ # <div align="center">Backurus</div>
2
4
 
3
5
  A Modern Backend Framework for Node.js inspired by Laravel.
4
6
 
@@ -1,7 +1,8 @@
1
1
  import path from 'node:path'
2
2
  import { spawn } from 'node:child_process'
3
+ import { pathToFileURL } from 'node:url'
3
4
 
4
- const registerFile = path.resolve(process.cwd(), 'backurus-register.mjs')
5
+ const registerFile = pathToFileURL(path.resolve(process.cwd(), 'backurus-register.mjs')).href
5
6
 
6
7
  if (!process.execArgv.includes('--import')) {
7
8
  const child = spawn(process.execPath, ['--import', registerFile, process.argv[1], ...process.argv.slice(2)], {
@@ -3,4 +3,4 @@ import { register } from 'node:module'
3
3
  import { pathToFileURL } from 'node:url'
4
4
 
5
5
  const loaderPath = pathToFileURL(path.resolve(process.cwd(), 'backurus-loader.mjs')).href
6
- register(loaderPath, pathToFileURL('./'))
6
+ register(loaderPath, import.meta.url)
package/template/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import path from 'node:path'
2
2
  import { spawn } from 'node:child_process'
3
+ import { pathToFileURL } from 'node:url'
3
4
 
4
- const registerFile = path.resolve(process.cwd(), 'backurus-register.mjs')
5
+ const registerFile = pathToFileURL(path.resolve(process.cwd(), 'backurus-register.mjs')).href
5
6
 
6
7
  if (!process.execArgv.includes('--import')) {
7
8
  const child = spawn(process.execPath, ['--import', registerFile, process.argv[1], ...process.argv.slice(2)], {
package/template/urus CHANGED
@@ -1,7 +1,8 @@
1
1
  import path from 'node:path'
2
2
  import { spawn } from 'node:child_process'
3
+ import { pathToFileURL } from 'node:url'
3
4
 
4
- const registerFile = path.resolve(process.cwd(), 'backurus-register.mjs')
5
+ const registerFile = pathToFileURL(path.resolve(process.cwd(), 'backurus-register.mjs')).href
5
6
 
6
7
  if (!process.execArgv.includes('--import')) {
7
8
  const child = spawn(process.execPath, ['--import', registerFile, process.argv[1], ...process.argv.slice(2)], {