@adriankulik/create-fullstack-app 1.13.0 → 1.13.1

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/cli/build-date.js CHANGED
@@ -1 +1 @@
1
- module.exports = '2026-08-22 22:18:23';
1
+ module.exports = '2026-08-23 21:07:41';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.0",
6
+ "version": "1.13.1",
7
7
  "description": "A CLI tool for scaffolding a full-stack web application with your choice of frontend and backend technologies.",
8
8
  "main": "cli/index.js",
9
9
  "bin": {
@@ -16,7 +16,7 @@ var app = builder.Build();
16
16
 
17
17
  app.UseCors();
18
18
 
19
- var dbUrl = Environment.GetEnvironmentVariable("DATABASE_URL") ?? "postgresql://user:password@localhost:5432/appdb";
19
+ var dbUrl = Environment.GetEnvironmentVariable("DATABASE_URL") ?? "postgresql://user:password@127.0.0.1:5432/appdb";
20
20
  var connStr = dbUrl;
21
21
  if (dbUrl.StartsWith("postgres://") || dbUrl.StartsWith("postgresql://"))
22
22
  {
@@ -44,7 +44,7 @@ app.MapPost("/api/multiply", async ([FromBody] MultiplyRequest request) =>
44
44
  return new { result };
45
45
  });
46
46
 
47
- app.Run("http://localhost:8000");
47
+ app.Run("http://127.0.0.1:8000");
48
48
 
49
49
  class MultiplyRequest
50
50
  {
@@ -20,7 +20,7 @@ class MultiplyRequest(BaseModel):
20
20
  class MultiplyResponse(BaseModel):
21
21
  result: float
22
22
 
23
- DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://user:password@localhost:5432/appdb")
23
+ DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://user:password@127.0.0.1:5432/appdb")
24
24
 
25
25
  def save_calculation(number: float, result: float):
26
26
  conn = psycopg2.connect(DATABASE_URL)
@@ -6,7 +6,7 @@ import psycopg2
6
6
  app = Flask(__name__)
7
7
  CORS(app)
8
8
 
9
- DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://user:password@localhost:5432/appdb")
9
+ DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://user:password@127.0.0.1:5432/appdb")
10
10
 
11
11
  def save_calculation(number: float, result: float):
12
12
  conn = psycopg2.connect(DATABASE_URL)
@@ -7,7 +7,7 @@ app.use(cors());
7
7
  app.use(express.json());
8
8
 
9
9
  const pool = new Pool({
10
- connectionString: process.env.DATABASE_URL || 'postgresql://user:password@localhost:5432/appdb'
10
+ connectionString: process.env.DATABASE_URL || 'postgresql://user:password@127.0.0.1:5432/appdb'
11
11
  });
12
12
 
13
13
  app.post('/api/multiply', async (req: Request, res: Response) => {
@@ -84,7 +84,7 @@ path_separator = os
84
84
  # database URL. This is consumed by the user-maintained env.py script only.
85
85
  # other means of configuring database URLs may be customized within the env.py
86
86
  # file.
87
- sqlalchemy.url = postgresql://user:password@localhost:5432/appdb
87
+ sqlalchemy.url = postgresql://user:password@127.0.0.1:5432/appdb
88
88
 
89
89
 
90
90
  [post_write_hooks]
@@ -16,8 +16,8 @@ export class AppComponent {
16
16
  result: number | null = null;
17
17
  error: string | null = null;
18
18
 
19
- // Configure via environment: defaults to localhost for development
20
- private apiUrl = 'http://localhost:8000';
19
+ // Configure via environment: defaults to 127.0.0.1 for development
20
+ private apiUrl = 'http://127.0.0.1:8000';
21
21
 
22
22
  private cdr = inject(ChangeDetectorRef);
23
23
 
@@ -30,7 +30,7 @@ describe('Home', () => {
30
30
  fireEvent.click(button);
31
31
 
32
32
  expect(fetch).toHaveBeenCalledTimes(1);
33
- expect(fetch).toHaveBeenCalledWith('http://localhost:8000/api/multiply', expect.any(Object));
33
+ expect(fetch).toHaveBeenCalledWith('http://127.0.0.1:8000/api/multiply', expect.any(Object));
34
34
 
35
35
  const result = await waitFor(() => screen.getByText(/Result:/i));
36
36
  expect(result).toBeInTheDocument();
@@ -11,7 +11,7 @@ export default function Home() {
11
11
  const [result, setResult] = useState<number | null>(null);
12
12
  const [error, setError] = useState<string | null>(null);
13
13
 
14
- const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000';
14
+ const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://127.0.0.1:8000';
15
15
 
16
16
  const handleSubmit = async (e: FormEvent) => {
17
17
  e.preventDefault();
@@ -1,4 +1,6 @@
1
1
  /** @type {import('next').NextConfig} */
2
- const nextConfig = {};
2
+ const nextConfig = {
3
+ allowedDevOrigins: ['127.0.0.1', 'localhost'],
4
+ };
3
5
 
4
6
  module.exports = nextConfig;
@@ -7,7 +7,7 @@
7
7
  let result: number | null = $state(null);
8
8
  let error: string | null = $state(null);
9
9
 
10
- const apiUrl = import.meta.env.VITE_API_URL || 'http://localhost:8000';
10
+ const apiUrl = import.meta.env.VITE_API_URL || 'http://127.0.0.1:8000';
11
11
 
12
12
  async function handleSubmit(e: Event) {
13
13
  e.preventDefault();
@@ -9,7 +9,7 @@ const number = ref<string>('')
9
9
  const result = ref<number | null>(null)
10
10
  const error = ref<string | null>(null)
11
11
 
12
- const apiUrl = import.meta.env.VITE_API_URL || 'http://localhost:8000'
12
+ const apiUrl = import.meta.env.VITE_API_URL || 'http://127.0.0.1:8000'
13
13
 
14
14
  const handleSubmit = async () => {
15
15
  error.value = null