Skip to content

A prototype application written in TypeScript and React.js to easily visualize in Microsoft Azure Maps all the current active food trucks in the city of San Francisco, CA.

Notifications You must be signed in to change notification settings

joaquinrz/sf-foodtrucks

Repository files navigation

San Francisco Food Truck Explorer

A prototype application written in TypeScript and React.js to easily visualize in Microsoft Azure Maps all the current active food trucks in the city of San Francisco, CA.

Technologies Used

Getting Started

The following instructions will get you up and running in your local environment.

Prerequisites

Installing

Clone the repository

git clone https://github.com/joaquinrz/sf-foodtrucks.git && cd sf-foodtrucks

Install the necessary package dependencies

npm install

Create an .env file to store the Azure Maps API Key

echo "REACT_APP_AZURE_MAP_API_KEY=<YOUR_KEY_GOES_HERE>" >> .env

Run the application in development mode

npm start

The application will now be ready to be seen at http://localhost:3000

Creating a Production Build

The following command will create an optimized production build in the ./build folder

npm run build

Creating a Production Image using Docker

docker build --build-arg REACT_APP_AZURE_MAP_API_KEY=<YOUR_KEY_GOES_HERE> . -t <repo_name>/<image_name>

Future Enhancements and Ideas

  • Add search functionality
  • Integrate geolocation services to view user's current position
  • Integrate with Yelp API to provide more information about the food trucks (rating, telephone, hours of operation, etc)
  • Filter results
  • Have a datastore available (e.g. MongoDB, Elasticsearch) to store the food trucks data without having to rely on the San Francisco API in case it comes down and also to improve performance

Other Notes

Coming from a backend development background, this application was an excellent and innovative way to be even more familiarized with some of the React.js capabilities as well as the Azure Cloud Services Catalog.

Authors

  • Joaquin Rodriguez - Initial work - joaquinrz

Attributions

About

A prototype application written in TypeScript and React.js to easily visualize in Microsoft Azure Maps all the current active food trucks in the city of San Francisco, CA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published