Try the live version of the application: https://public-transport-complain.vercel.app/
A modern web application built with Next.js that provides public transport information and services. This application offers a user-friendly interface for managing transportation-related services with integrated contact functionality.
- 🚌 Public transport information and management
- 📱 Responsive design for all devices
- 📧 Contact form with email integration
- 🔐 User authentication
- 🎨 Modern UI with custom components
- ⚡ Server-side rendering for optimal performance
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Shadcn/ui
- Email Service: Custom email integration
- Authentication: Built-in Next.js authentication
- Deployment: Vercel
- Node.js 18.x or later
- npm or yarn package manager
- Clone the repository
git clone https://github.com/yourusername/public_transport.git
cd public_transport- Install dependencies
npm install
# or
yarn install- Set up environment variables
Create a
.envfile in the root directory with the following variables:
EMAIL_USER=your_email@example.com
# Add other required environment variables- Run the development server
npm run dev
# or
yarn devOpen http://localhost:3000 to view the application.
POST /api/contact
- Handles contact form submissions
- Request body:
{
"name": "string",
"email": "string",
"subject": "string",
"message": "string"
}- Returns:
- 200: Success
- 400: Missing fields
- 500: Server error
├── app/ # Next.js app directory
├── components/ # Reusable UI components
├── actions/ # Server actions
├── lib/ # Utility functions
├── public/ # Static assets
└── ...
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For support, please:
- Open an issue in the GitHub repository
- Contact through the website's contact form
- Email: [zaidshaikh2811@gmail.com]