Refactored project structure and renamed index.ts to app.ts