- Refactored the RegistroPonto component to improve the layout and user experience, including a new section for displaying standard hours. - Updated RelogioSincronizado to include GMT offset adjustments for accurate time display. - Introduced new location validation logic in the backend to ensure point registrations are within allowed geofenced areas. - Enhanced the device information schema to capture additional GPS data, improving the reliability of location checks. - Added new endpoints for managing allowed marking addresses, facilitating better control over where points can be registered.
30 lines
928 B
Markdown
30 lines
928 B
Markdown
# ⚙️ Configuração de Variáveis de Ambiente
|
|
|
|
## 📁 Arquivo .env
|
|
|
|
Crie um arquivo `.env` na pasta `apps/web/` com as seguintes variáveis:
|
|
|
|
```env
|
|
# Google Maps API Key (opcional)
|
|
# Obtenha sua chave em: https://console.cloud.google.com/
|
|
# Ative a "Geocoding API" para buscar coordenadas por endereço
|
|
# Deixe vazio para usar OpenStreetMap (gratuito, sem necessidade de chave)
|
|
VITE_GOOGLE_MAPS_API_KEY=
|
|
|
|
# VAPID Public Key para Push Notifications (opcional)
|
|
VITE_VAPID_PUBLIC_KEY=
|
|
```
|
|
|
|
## 📖 Documentação Completa
|
|
|
|
Para instruções detalhadas sobre como obter e configurar a Google Maps API Key, consulte:
|
|
|
|
📄 **[GOOGLE_MAPS_SETUP.md](./GOOGLE_MAPS_SETUP.md)**
|
|
|
|
## ⚠️ Importante
|
|
|
|
- O arquivo `.env` não deve ser commitado no Git (já está no .gitignore)
|
|
- Variáveis de ambiente começam com `VITE_` para serem acessíveis no frontend
|
|
- Reinicie o servidor de desenvolvimento após alterar o arquivo `.env`
|
|
|