A comprehensive forest management application for tracking, monitoring, and managing forest inventory and resources.
# Install dependencies
npm install
# Set up environment variables
# Copy .env.example to .env and configure your database
# Push database schema
npm run db:push
# Start development server (runs both frontend and backend)
npm run dev
# Type checking
npm run check
# Build for production (includes both frontend and backend)
npm run build
# Build frontend only for GitHub Pages
npm run build:gh
# Start production server
npm start
This project is configured for automatic deployment to GitHub Pages.
git push origin main
Every push to main branch automatically triggers a deployment via GitHub Actions.
Live URL: https://lokeshpuma.github.io/ForesTracker-0/
# Build and test locally
npm run build:gh
# Preview build
cd dist/public
npx http-server
ForesTracker-0/
βββ client/ # Frontend React application
β βββ src/
β β βββ components/ # React components
β β β βββ ui/ # UI components (shadcn/ui)
β β β βββ layouts/ # Layout components
β β β βββ error-boundary.tsx
β β β βββ api-error-handler.tsx
β β βββ pages/ # Page components
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Utilities and helpers
β β βββ App.tsx # Main app component
β β βββ main.tsx # Entry point
β βββ index.html
βββ server/ # Backend Express application
β βββ index.ts # Server entry point
β βββ routes.ts # API routes
β βββ storage.ts # Data storage logic
βββ shared/ # Shared code
β βββ schema.ts # Database schema and types
βββ vite.config.ts # Vite configuration
βββ tsconfig.json # TypeScript configuration
βββ package.json # Project dependencies
βββ .github/
βββ workflows/
βββ deploy.yml # GitHub Actions deployment workflow
The application includes comprehensive error handling:
Create a .env file with the following variables:
DATABASE_URL=your_neon_database_url
NODE_ENV=development
| Script | Purpose |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production (full stack) |
npm run build:gh |
Build for GitHub Pages (frontend only) |
npm run start |
Start production server |
npm run check |
Run TypeScript type checking |
npm run db:push |
Push database schema changes |
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE file for details
For issues and questions, please open an issue on GitHub.
Repository: ForesTracker-0
Live Demo: ForesTracker on GitHub Pages