Hackathon Winner | Most Creative Track | TechNYU
POINT is a web application that enables users to calculate routes between a starting point and a destination, displaying points of interest (POIs) along the way. Users can also listen to audio descriptions of select locations.
Clone the repository:
git clone https://github.com/craftingweb/Buildathon.git
cd Buildathon
Install dependencies:
npm install
Set up environment variables:
Create a .env.local
file in the project root with the following variables:
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=xxxxx
Run the development server:
npm run dev
The application will be available at http://localhost:3000/
.
Run the backend server:
The repo is available at: BuildathonBackend
Buildathon/
├── app/ # Application-specific configurations
├── components/ # Reusable UI components
├── hooks/ # Custom React hooks
├── lib/ # Library utilities
├── public/ # Static assets
├── styles/ # Styling files (CSS, Tailwind configurations)
├── types/ # TypeScript type definitions
├── .gitignore # Git ignore file
├── components.json # (Specify the purpose of this file)
├── flatiron_building_.mp3 # Sample audio file
├── next.config.mjs # Next.js configuration
├── package-lock.json # Lockfile for npm
├── package.json # Project dependencies and scripts
├── postcss.config.mjs # PostCSS configuration
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
The frontend interacts with the backend Flask API to fetch route details and audio descriptions.
Endpoint: /health
Method: GET
Response:
{
"status": "healthy"
}
Endpoint: /get-location-info
Method: GET
Query Parameters:
place
: Name of the location (e.g., ?place=Flatiron
)Response:
{
"place": "Flatiron",
"description": "Now approaching the Flatiron Building, an iconic triangular skyscraper..."
}
/get-location-audio
GET
place
: Name of the location (e.g., ?place=Flatiron
)Build the project:
npm run build
Start the production server:
npm start
Ensure that the environment variables are set appropriately for production.
Create a Dockerfile
:
(Provide the Dockerfile content if available)
Build and run the Docker container:
docker build -t route-planner-frontend .
docker run -p 3000:3000 route-planner-frontend
git checkout -b feature/your-feature
)git commit -m 'Add your feature'
)git push origin feature/your-feature
)This project is licensed under the MIT License.