24 Commits

Author SHA1 Message Date
17b07e9432
build(biome): Add style configuration to JSON
A new "style" configuration has been added to the `biome.json` file. Specifically, the "useImportType" key has been set to "off". This update sets a new rule for JSON style patterns within the project.
2024-07-09 16:02:44 +02:00
763217dfdf
feat(pipes): add zod filter and zod pipe
This commit introduces two new files: zod.pipe.filter.ts and zod.pipe.ts. The `ZodFilter` catches ZodErrors and defines the HTTP response json format. The `ZodPipe` validates incoming data against a predefined schema.
2024-07-09 16:02:17 +02:00
cac7d4cfd3
feat(credentials): add new Credentials service and module
Introduce the Credentials service which is responsible for hashing and verifying passwords. Added appropriate methods within the service and provided it in a new Credentials module. The module exports the service to allow its use in other parts of the application.
2024-07-09 15:06:37 +02:00
2aa793c91d
feat(schema): Move and enhance schema definitions
This commit relocates the schema definitions by deleting the existing `drizzle/schema.ts` and creating a new `schema.ts` file. It also enhances these definitions by adding `createInsertSchema` and `createSelectSchema` for each table.
2024-07-09 15:06:18 +02:00
ed2fc3dbf9
feat: add drizzle-zod to dependencies
This commit includes drizzle-zod version 0.5.1 to the project's dependencies. It updates the package.json and pnpm-lock.yaml files, ensuring a stable integration of the latest drizzle-zod library.
2024-07-09 15:05:43 +02:00
da99165531
style(main): Reformat code for readability
The main.ts file has been reformatted according to the coding standards. This change includes correcting several indentation issues and ensuring that all imports are properly grouped. There is no impact on functionality.
2024-07-09 15:02:54 +02:00
e1909791ac
feat(auth): Enhance AuthService with additional functionalities and dependencies
This commit implements additional operations in AuthService such as user registration, login, fetching, updating, and deletion. It also adds two new dependencies: DrizzleService and CredentialsService. Moreover, AuthService now implements OnModuleInit for executing methods once the module has been initialized. Corresponding changes are reflected in the module structure.
2024-07-09 15:02:25 +02:00
bb482fb896
feat(auth): add Auth service and module
A new authentication service and module were added to the application. The app.module.ts file was updated to include this newly created AuthModule. Also, an initial structure for the AuthService was set up.
2024-07-09 15:01:36 +02:00
3c57098bbe
feat(auth): add Auth service and module
A new authentication service and module were added to the application. The app.module.ts file was updated to include this newly created AuthModule. Also, an initial structure for the AuthService was set up.
2024-07-09 14:11:13 +02:00
e575b669ce
feat: add Drizzle module and service
Implement Drizzle service and integration in the project. A new Drizzle module was added to the nest app. The Drizzle service also includes configuration for postgres database and management of migration client. An adjustment was also made to tsconfig.json to enable ES module interoperation.
2024-07-09 14:08:03 +02:00
1971a0dcfd
feat(logger): Add new Logger service
A new file logger.service.ts is created which implements the LoggerService from @nestjs/common. This service utilizes the Winston logging library and includes logging functions for different levels of messages such as log, error, warn, debug, and verbose. A logger object with timestamp and simple format is configured to output the logs to both console and a file named "application.log".
2024-07-09 13:45:05 +02:00
573d4eac9c
feat(schema): add user, product, stock, comment and purchase tables
This commit adds several new tables to the schema for the drizzle ORM, including tables for users, products, stock, comments, and purchase history. Each table contains defined fields with appropriate data types and constraints. This forms the basis for storage and retrieval of relevant data within the application.
2024-07-09 13:44:50 +02:00
a3433bf5da
feat: Add .env configuration file
A new .env file has been added with important elements for the application's configuration such as postgres database details, app port, encryption keys and other related data. This essential configuration is crucial for the proper operation of the application in different environments.
2024-07-09 13:44:07 +02:00
62e92f50ea
feat: update .gitignore to ignore .env files
Update the .gitignore file to also ignore all .env files. This ensures that sensitive environment-specific variables are not exposed or accidentally committed to the repository, contributing to enhanced security.
2024-07-09 13:43:44 +02:00
216d2be4f8
feat: Add Drizzle configuration file
This commit introduces a new Drizzle configuration file, 'drizzle.config.ts'. It establishes the schema path, output directory, dialect, and database credentials (such as host, user, password, and database) using environment variables.
2024-07-09 13:43:25 +02:00
b95f5be3a6
feat(app.module): add ThrottlerModule and ConfigModule
A new app.module.ts file was added with ThrottlerModule and ConfigModule imported from NestJS. The throttler is configured with a rate limit and the configuration module is set as global. The LogService was provided and exported for other parts of the application to use.
2024-07-09 13:42:41 +02:00
25d69823fa
feat: Initialize main NestJS application in 'src/main.ts'
This commit introduces 'src/main.ts' which starts up the NestJS application. It uses Fastify as the underlying HTTP server and leverages the helmet middleware for security. The CORS is also enabled for the application that will listen on the specified APP_PORT or default to port 3333.
2024-07-09 13:42:21 +02:00
481727ecf0
feat: Exclude dataSources folder from backend module
This commit updates the .idea/backend-main.iml to exclude the `.idea/dataSources` folder, improving file organization and preventing unnecessary tracking.
2024-07-09 13:42:03 +02:00
411fb981ef
feat: Add initial configuration files
New configuration files have been added for TypeScript, Biome, Nest CLI, Docker-compose, and environment variables. This setup includes TypeScript compiler options, biome schema settings, database container configuration and more. Additionally, a .gitignore file is added to exclude unnecessary files from the git repository.
2024-07-09 13:39:55 +02:00
2e649e6a6d
feat: Add package.json for new project initialization
This commit introduces package.json for setting up the new project titled "should-stick-back". The package.json file includes all necessary scripts, dependencies, devDependencies, and jest configuration for the project. This is a foundational step for establishing the codebase.
2024-07-09 13:38:52 +02:00
71ac0bad1d
feat: Add pnpm-lock.yaml with dependencies
This commit includes a new `pnpm-lock.yaml` file that contains a list of the project's dependencies with their corresponding versions. This ensures that each installation receives an identical set of packages, preventing version inconsistencies across different development environments.
2024-07-09 13:38:32 +02:00
dd80667c13
feat: Add settings for DB navigator, Git toolbox blame and code styles
This commit includes settings for the Database Navigator and Git Toolbox Blame with changes to the IDE's XML files. Also, modifications are made to project's code styles tasking the formatter to maintain a consistent development environment.
2024-07-09 13:37:08 +02:00
38223c7f4d
feat(README): Update content and format
The README.md file has been significantly expanded and formatted. It now includes a more detailed description of the project, installation and running instructions, testing procedures, and additional project support and contact information. Nest framework usage orientation has been enhanced.
2024-07-08 11:43:27 +02:00
529d301450 Initial commit 2024-07-08 08:55:39 +02:00