A full-stack web application for MaizeBus, built with React (Vite) frontend and Node.js (Express) backend.
maizebus-web/
├── client/ # React frontend (Vite + TypeScript)
├── server/ # Node.js backend (Express + TypeScript)
├── package.json # Root package.json with workspace configuration
└── README.md
- Node.js (>= 18.0.0)
- npm (>= 8.0.0)
-
Install all dependencies:
npm run install:all
-
Start development servers:
npm run dev
This will start both the frontend (port 5173) and backend (port 3001) concurrently.
-
Access the application:
- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
npm run dev- Start both client and server in development modenpm run build- Build both client and server for productionnpm run start- Start both client and server in production modenpm run install:all- Install dependencies for all workspacesnpm run clean- Remove all node_modules directoriesnpm run lint- Run linting for both client and server
npm run dev- Start Vite development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
npm run dev- Start server with nodemonnpm run build- Compile TypeScriptnpm start- Start production servernpm run lint- Run ESLint
Create a .env file in the server/ directory:
PORT=3001
FRONTEND_URL=http://localhost:5173
EMAIL_HOST=smtp.zoho.com
EMAIL_PORT=465
EMAIL_USER=your-email@gmail.com
EMAIL_PASS=your-app-password
EMAIL_TO=contact@maizebus.com- Built with React 19, TypeScript, and Vite
- Uses Tailwind CSS for styling
- Includes Radix UI components
- Located in
client/directory
- Built with Express.js and TypeScript
- Handles contact forms and file uploads
- Uses Nodemailer for email functionality
- Located in
server/directory
-
Build the application:
npm run build
-
Start production servers:
npm run start
MIT License - see LICENSE file for details