Files
quasar/backend/src/index.ts
Benito Rodríguez 9f5569a838
Some checks failed
CI / lint (push) Failing after 15s
CI / test-backend (push) Has been skipped
CI / test-frontend (push) Has been skipped
CI / test-e2e (push) Has been skipped
feat: update server port to 3003 and enhance logging; refactor frontend styles and components for improved UI/UX
- 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.
2026-03-19 19:54:08 +01:00

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
*/