diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7cc68bd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +node_modules +dist +.env +.env.local +.git +.gitignore +tests +coverage +*.md +.eslintrc* +vitest.config.js diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..bf21dd0 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# Frontend Service Environment Variables +VITE_API_URL=http://localhost:3000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 0000000..5000cbd --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vitest/config'; +import react from '@vitejs/plugin-react'; + +export default defineConfig({ + plugins: [react()], + test: { + environment: 'jsdom', + globals: true, + setupFiles: './tests/setup.js', + }, +});