A React TypeScript application for tracking finances and inventory of a chicken farm.
The application uses environment variables to configure the backend API URL. This allows for different configurations in development and production environments.
VITE_API_URL: The base URL for the backend API
The following environment files are used:
.env: Default environment variables.env.development: Development-specific variables (used when runningnpm run dev).env.production: Production-specific variables (used when runningnpm run build)
To modify the backend URL:
- Edit the appropriate
.envfile - Set the
VITE_API_URLvariable to your backend URL - Restart the development server if it's running
Example:
VITE_API_URL=http://localhost:5055
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build