Refactor code structure and dependencies

- Remove unused files and modules
- Update submodule URL for epess-database
- Update DATABASE_URL in compose.yaml
- Update CI workflow to fetch submodules during checkout and fix GITHUB_TOKEN issue
- Enable strict mode in tsconfig.json
- Add UsersService and UsersResolver in users module
- Remove AppService and AppController
- Update main.ts to remove unused imports and log statement
- Add PrismaModule and PrismaService
- Add PrismaContextMiddleware
- Update GraphQL module to use schema and PrismaService
- Update package.json dependencies and devDependencies
This commit is contained in:
2024-09-27 06:21:04 +07:00
parent 8fe5e62870
commit 258a35d364
23 changed files with 4751 additions and 894 deletions

View File

@@ -1,11 +1,9 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Logger } from '@nestjs/common';
// init log for bootstrap
async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
Logger.log(`Server running on http://localhost:3000`, 'Bootstrap');
}
bootstrap();