Professional website for Greenfield Energy - Oil & Gas Consultancy and Software Solutions company.
This is a full-stack MERN application with separate frontend and backend directories:
- Frontend: Modern React application with React Router and Tailwind CSS
- Backend: Node.js/Express REST API server
greenfield-energy/
├── frontend/ # React frontend application
│ ├── src/
│ │ ├── components/ # Reusable components (Navbar, Footer)
│ │ ├── pages/ # Page components (Home, About, Services, Products, Contact)
│ │ ├── App.jsx # Main app component with routing
│ │ ├── main.jsx # Application entry point
│ │ └── index.css # Global styles with Tailwind
│ ├── package.json
│ ├── vite.config.js
│ └── README.md
│
└── backend/ # Express backend API
├── routes/ # API route handlers
│ ├── contactRoutes.js
│ ├── productRoutes.js
│ └── serviceRoutes.js
├── server.js # Main server file
├── package.json
└── README.md
- Fully responsive design for all devices
- Modern UI with blue and green professional color scheme
- Smooth animations and transitions
- Five main pages: Home, About, Services, Products, Contact
- Component-based architecture
- Professional stock images from Pexels
- RESTful API endpoints
- Contact form submission handling
- Products and services data management
- CORS enabled for frontend integration
- Environment variable configuration
cd frontend
npm install
npm run devFrontend will run on http://localhost:5173
cd backend
npm install
npm run devBackend will run on http://localhost:5000
- React 18
- React Router DOM
- Tailwind CSS
- Vite
- Lucide React (icons)
- Node.js
- Express.js
- MongoDB with Mongoose
- CORS
- dotenv
- Home - Hero section with company overview, statistics, and call-to-action
- About - Company story, vision, mission, values, and partnerships
- Services - Engineering consultancy, software development, and training services
- Products - SandMaster, AutoWellz, AutoPro, RockMaster, and GREEN software solutions
- Contact - Contact form and company information
GET /- API informationPOST /api/contact- Submit contact formGET /api/products- Get all productsGET /api/products/:id- Get specific productGET /api/services- Get all servicesGET /api/services/:id- Get specific service
cd frontend
npm run buildcd backend
npm startCreate .env files in both frontend and backend directories as needed.
Backend .env:
PORT=5000
NODE_ENV=development
MONGODB_URI=mongodb://localhost:27017/greenfield-energy
ISC