Adjusted .idea/workspace.xml for correct recent project path and tasks. Updated seed.ts to include new cryptocurrency records and modified existing promo code details.
Return the result from `getOffersById` method to fix route handling. Add `id` field in offers selection query and introduce `gdpr_acknowledgement` to the user model and mock data for GDPR compliance.
Added the ability to select user crypto amounts in the user service. Removed commented-out code in the offer controller for clarity. Updated the README with deployment and production instructions.
Implemented end-to-end tests for the app and introduced path aliases in `tsconfig.json`. Updated `pnpm-lock.yaml` with the latest dependency versions. Added a new service method to fetch offers by user ID and crypto ID.
This commit introduces a new seed script located at prisma/seed.ts. The script seeds the database with default roles ('user' and 'admin') and a sample promo code ('PROMO1000' with a value of 1000). This setup helps initialize essential data for application functionality.
Integrate modules and services related to crypto, user, role, offer, and promoCode functionalities. Includes DTOs for validating data shapes, and services to handle business logic, with controller endpoints for different operations.
This commit introduces multiple new UI components for the project. The added components include ToggleGroup, RadioGroup, Pagination, ToastBox, Textarea, Breadcrumb, Skeleton, Collapsible, Checkbox, Calendar, Accordion, Sonner, and CopyButton. These components enhance the flexibility and functionality of the UI, providing essential elements for better user interaction.
Set up Prisma models for Crypto, CryptoHistory, Offer, PromoCode, Role, Trade, User, and UserHasCrypto. This includes defining fields, relationships, and default values for each model, and configuring PostgreSQL as the database provider.
Implement user signup and signin functionality with password hashing, role assignment, and JWT token generation. Integrate promo code for initial balance adjustment, and handle unique credential errors.
The trailing slash was removed to accurately match the directory during ignore operations. This ensures that the .gitignore works as expected for the prisma migrations folder.
Created a .gitignore file to exclude compiled output, logs, OS-specific files, test directories, editor settings, environment variable files, temporary directories, runtime data, and diagnostic reports from version control. This helps maintain a cleaner repository and prevents the inclusion of unnecessary or sensitive files.
Introduce the main.ts file to set up the NestJS application. This includes enabling CORS, configuring Swagger documentation, and setting up global validation pipes.
This adds a new configuration file for the Nest CLI to the project. The file specifies the schema, schematics collection, source root directory, and compiler options, including deleting the output directory before building.
Introduce a new pnpm-lock.yaml file to manage dependency versions and settings. This change ensures consistency across installations by locking the specific versions of dependencies.
Introduced `tsconfig.json` with TypeScript compiler options tailored for the project. Additionally, created `tsconfig.build.json` to extend the main config for build-specific settings and exclusions. This setup ensures a streamlined compilation process and cleaner build output.
Introduces a docker-compose.yaml file to set up a PostgreSQL container named "neptune-db". Configures the container with environment variables and volumes for persistent data storage.