@adriankulik/create-fullstack-app 1.13.0 → 1.14.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/cli/build-date.js +1 -1
- package/package.json +1 -1
- package/templates/backend/dotnet/Program.cs +2 -2
- package/templates/backend/fastapi/main.py +1 -1
- package/templates/backend/flask/main.py +1 -1
- package/templates/backend/nodejs/src/index.ts +1 -1
- package/templates/base/database/alembic.ini +1 -1
- package/templates/frontend/angular/src/app/app.component.ts +2 -2
- package/templates/frontend/nextjs/__tests__/page.test.tsx +1 -1
- package/templates/frontend/nextjs/app/page.tsx +1 -1
- package/templates/frontend/nextjs/next.config.js +3 -1
- package/templates/frontend/nextjs/package-lock.json +4 -4
- package/templates/frontend/nextjs/package.json +1 -1
- package/templates/frontend/svelte/src/App.svelte +1 -1
- package/templates/frontend/vue/src/App.vue +1 -1
package/cli/build-date.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = '2026-08-
|
|
1
|
+
module.exports = '2026-08-23 21:11:43';
|
package/package.json
CHANGED
|
@@ -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@
|
|
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://
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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
|
|
20
|
-
private apiUrl = 'http://
|
|
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://
|
|
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://
|
|
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();
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/jest": "^30.0.0",
|
|
20
20
|
"@types/node": "^26.2.0",
|
|
21
21
|
"@types/react": "^19.2.18",
|
|
22
|
-
"@types/react-dom": "^19.2.
|
|
22
|
+
"@types/react-dom": "^19.2.5",
|
|
23
23
|
"eslint": "^9.0.0",
|
|
24
24
|
"eslint-config-next": "^16.3.2",
|
|
25
25
|
"jest": "^30.4.2",
|
|
@@ -2682,9 +2682,9 @@
|
|
|
2682
2682
|
}
|
|
2683
2683
|
},
|
|
2684
2684
|
"node_modules/@types/react-dom": {
|
|
2685
|
-
"version": "19.2.
|
|
2686
|
-
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.
|
|
2687
|
-
"integrity": "sha512-
|
|
2685
|
+
"version": "19.2.5",
|
|
2686
|
+
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.5.tgz",
|
|
2687
|
+
"integrity": "sha512-fMPwH9v7r/pp43yUd2/Mbiex5KouJwwR3dzHkhLREUC6764VyDsqxhAxv6OFEYR1RhjOyD1naqba8ECDBe7ZQg==",
|
|
2688
2688
|
"dev": true,
|
|
2689
2689
|
"license": "MIT",
|
|
2690
2690
|
"peerDependencies": {
|
|
@@ -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://
|
|
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://
|
|
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
|