Tags: hyperjumptech/hyperjump-web-framework
Tags
Implement project root detection and enhance route path resolution in… … CLI (#21) - Added a new `findProjectRoot` function to locate the project root directory by searching for `package.json` in parent directories. - Updated `resolveRoutePath` methods in `NextAppRouterGenerator` and `NextPagesRouterGenerator` to utilize the detected project root for more accurate route path resolution. - Enhanced tests for route path resolution to cover various scenarios, including multiple `/app/` segments and projects using a `src` directory structure. - Introduced a new test file for `findProjectRoot` to ensure its functionality and correctness. These changes improve the flexibility and accuracy of route path generation in the CLI, particularly for complex project structures. Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>
Add `--with-entrypoint` option to CLI for route entry-point file gene… …ration (#20) - Introduced a new command-line option `--with-entrypoint` to create missing route entry-point files during the generation process. - Updated documentation to reflect the new option and its usage. - Modified CLI behavior to conditionally create entry-point files based on the presence of the `--with-entrypoint` flag. - Enhanced tests to verify the correct functionality of the new option and its impact on entry-point file creation. This change improves the flexibility of the route-action-gen tool by allowing users to control entry-point file generation explicitly. Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>
Add database support (#17) * Enhance database package and update environment configuration - Introduced a new `@workspace/database` package with Prisma integration for managing user and post models. - Updated `dev-bootstrap.sh` to create symlinks for environment variables and added checks for `.env` file existence. - Enhanced `package.json` and `pnpm-lock.yaml` to include new dependencies for PostgreSQL and Prisma. - Refactored user and post model functions to utilize Prisma client for database operations. - Updated API routes to leverage the new database package for improved data handling. - Added comprehensive README documentation for the database package, including setup instructions and environment variable configurations. Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com> * Enhance database documentation and environment variable setup - Added comprehensive documentation for the `@workspace/database` package, detailing usage, environment variable symlinks, and Prisma client integration. - Updated instructions for managing multiple databases and environment variable requirements for different applications. - Modified the `client.ts` file to standardize the environment variable name for SSL connections from `DATABASE_CERT_BASE64` to `DB_CERT_BASE64`, ensuring clarity and consistency. Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com> * Fix workflows --------- Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>