- Changed server port from 3000 to 3003 in backend. - Updated logging message for server startup. - Refactored global CSS styles for a neon theme with new color variables. - Introduced responsive typography and layout adjustments in frontend. - Added new components: EmptyState and GameCover for better game display. - Implemented loading states and error handling in the Home page. - Updated API base URL to match new server port.
31 lines
597 B
TypeScript
31 lines
597 B
TypeScript
import dotenv from 'dotenv';
|
|
import { buildApp } from './app';
|
|
|
|
dotenv.config();
|
|
|
|
const port = Number(process.env.PORT ?? 3003);
|
|
const app = buildApp();
|
|
|
|
const start = async () => {
|
|
const host = '0.0.0.0';
|
|
|
|
try {
|
|
await app.listen({ port, host });
|
|
console.log(`🚀 Server ready and listening on http://${host}:${port}`);
|
|
} catch (err) {
|
|
app.log.error(err);
|
|
process.exit(1);
|
|
}
|
|
};
|
|
|
|
// Start only when run directly (avoids starting during tests)
|
|
if (require.main === module) {
|
|
start();
|
|
}
|
|
|
|
/**
|
|
* Metadatos:
|
|
* Autor: GitHub Copilot
|
|
* Última actualización: 2026-02-07
|
|
*/
|