18 Commits

Author SHA1 Message Date
cc296d739b
Update IDE config and seed file with additional data
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.
2024-11-27 10:55:28 +01:00
55ec13c0a7
Fix offer retrieval method and add GDPR acknowledgment
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.
2024-11-24 23:49:59 +01:00
ebdc3d0109
Enable user crypto amount selection and update deployment docs
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.
2024-11-22 11:06:50 +01:00
ecba9a3377
Add E2E tests and update dependencies
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.
2024-11-14 11:11:21 +01:00
8ea217fe9f
Normalize quote usage in imports
Standardized the quote style to double quotes across all TypeScript files for consistency. This includes ".ts" and ".dto" files.
2024-11-12 13:37:29 +01:00
2fdc16e003
Add initial seeding script for roles and promo codes
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.
2024-11-12 13:30:21 +01:00
fa91630a29
Add various module, service, and DTO files for new features
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.
2024-11-12 13:30:05 +01:00
313a51f8db
Add various UI components including ToggleGroup and RadioGroup
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.
2024-11-08 14:37:06 +01:00
d73aecd2ab
Add initial Prisma schema
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.
2024-11-08 09:35:32 +01:00
cfcc998271
Add AuthService for user registration and login
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.
2024-10-31 11:49:03 +01:00
747b4357f9
Remove trailing slash from .gitignore prisma/migrations entry
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.
2024-10-31 11:45:49 +01:00
1f7ed6e03c
Add .gitignore file
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.
2024-10-31 11:44:39 +01:00
5666c16d00
Add main application bootstrap logic
Introduce the main.ts file to set up the NestJS application. This includes enabling CORS, configuring Swagger documentation, and setting up global validation pipes.
2024-10-31 11:43:49 +01:00
272d3ec50a
Add nest-cli.json configuration file
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.
2024-10-31 11:43:38 +01:00
57d9845d19
Add pnpm-lock.yaml file
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.
2024-10-31 11:43:27 +01:00
80c8662ed1
Add tsconfig and tsconfig.build configuration files
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.
2024-10-31 11:42:56 +01:00
0fb7c3e288
Add docker-compose file for PostgreSQL service
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.
2024-10-31 11:41:42 +01:00
6d59fd8c60 Initial commit 2024-10-30 15:46:53 +00:00