Add Dockerized FastNext stack template with backend and frontend
Implemented a full-stack template combining Next.js (frontend), FastAPI (backend), and PostgreSQL. Included Docker configurations for development and production, environment file templates, Makefile commands, and initial setup for database migrations and builds. The stack is production-ready and supports hot-reloading for local development.
This commit is contained in:
11
frontend/entrypoint.sh
Normal file
11
frontend/entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user