diff --git a/.env.example b/.env.example index 718e518..3b4360f 100644 --- a/.env.example +++ b/.env.example @@ -1,38 +1,26 @@ -# DATABASE +# Docker Compose environment variables +# Variables used by docker-compose.yml, docker-compose.test.yml and local apps + +# PostgreSQL Database DB_USER=postgres DB_PASSWORD=example DB_NAME=dropit DB_PORT=5432 DB_HOST=localhost -# DATABASE TESTS +# PostgreSQL Test Database (docker-compose.test.yml) DB_USER_TEST=postgres DB_PASSWORD_TEST=example DB_NAME_TEST=dropit_test DB_PORT_TEST=5433 DB_HOST_TEST=localhost -# PGADMIN +# PgAdmin PGADMIN_DEFAULT_EMAIL=admin@admin.com PGADMIN_DEFAULT_PASSWORD=admin PGADMIN_PORT=5050 -# API -NODE_ENV=development # development | production -API_PORT=3000 -BETTER_AUTH_SECRET=1G9ueZXVQSRINjcRri14LqXWDYkV3fOd -TRUSTED_ORIGINS=http://localhost:3000,http://localhost:5173 -SEED_DB=false #Use in dockerfile in production - -# CLIENT -VITE_API_URL=http://localhost:3000 - -# EMAIL - BREVO (Production) -BREVO_API_KEY= -BREVO_FROM_EMAIL= -BREVO_FROM_NAME= - -# EMAIL - MAILDEV (Development) +# MailDev (Development email server) MAILDEV_HOST=localhost MAILDEV_SMTP_PORT=1025 MAILDEV_WEB_PORT=1080 \ No newline at end of file diff --git a/.helix/languages.toml b/.helix/languages.toml new file mode 100644 index 0000000..8126d96 --- /dev/null +++ b/.helix/languages.toml @@ -0,0 +1,38 @@ +# Helix configuration for using Biome (linter + formatter) +# Biome replaces ESLint + Prettier, works alongside TypeScript LSP +# This file takes precedence over the global Helix config + +# Configure Biome as a language server for linting +[language-server.biome] +command = "biome" +args = ["lsp-proxy"] + +[[language]] +name = "typescript" +language-servers = ["typescript-language-server", "biome"] +formatter = { command = "biome", args = ["format", "--stdin-file-path", "file.ts"] } +auto-format = true + +[[language]] +name = "tsx" +language-servers = ["typescript-language-server", "biome"] +formatter = { command = "biome", args = ["format", "--stdin-file-path", "file.tsx"] } +auto-format = true + +[[language]] +name = "javascript" +language-servers = ["typescript-language-server", "biome"] +formatter = { command = "biome", args = ["format", "--stdin-file-path", "file.js"] } +auto-format = true + +[[language]] +name = "jsx" +language-servers = ["typescript-language-server", "biome"] +formatter = { command = "biome", args = ["format", "--stdin-file-path", "file.jsx"] } +auto-format = true + +[[language]] +name = "json" +language-servers = ["biome"] +formatter = { command = "biome", args = ["format", "--stdin-file-path", "file.json"] } +auto-format = true diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 diff --git a/cli/setup.ts b/cli/setup.ts new file mode 100644 index 0000000..2bf93cd --- /dev/null +++ b/cli/setup.ts @@ -0,0 +1,11 @@ +//créer un fichier de setup qui va lancer automatiquement un certain nombre de commande pour preparer le projet +// Prompt you for database configuration (user, password, name, host, port) +// Prompt you for application ports +// Configure SMTP settings (MailDev) +// Copy and configure all .env files automatically +// Check for existing .env files and only prompt for missing variables +// Automatically update all .env files with your configuration + // Set up proper API URLs and trusted origins across all applications +// Optionally start Docker services (database, MailDev) +// Optionally run database migrations or dbfresh // 1. verifier si y a des .env + diff --git a/cookies.txt b/cookies.txt deleted file mode 100644 index c31d989..0000000 --- a/cookies.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Netscape HTTP Cookie File -# https://curl.se/docs/http-cookies.html -# This file was generated by libcurl! Edit at your own risk. -