forked from cardosofelipe/fast-next-template
- Created `generate-api-client.sh` for OpenAPI-based TypeScript client generation. - Added `src/lib/api` with Axios-based API client, error handling utilities, and placeholder for generated types. - Implemented Zustand-based `authStore` for user authentication and token management. - Integrated reusable UI components (e.g., `Dialog`, `Select`, `Textarea`, `Sheet`, `Separator`, `Checkbox`) using Radix UI and utility functions. - Established groundwork for client-server integration, state management, and modular UI development.
11 lines
182 B
Bash
Executable File
11 lines
182 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Wait for backend to be ready
|
|
echo "Waiting for backend..."
|
|
until nc -z backend 8000; do
|
|
sleep 1
|
|
done
|
|
echo "Backend is up!"
|
|
|
|
# Start the Next.js application
|
|
exec "$@" |