https://github.com/y2kforever/random-bar
WebApp to randomize a bar near you
https://github.com/y2kforever/random-bar
alcohol aws google-maps-api maps
Last synced: 5 months ago
JSON representation
WebApp to randomize a bar near you
- Host: GitHub
- URL: https://github.com/y2kforever/random-bar
- Owner: Y2KForever
- License: epl-2.0
- Created: 2022-08-09T15:31:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-14T12:15:57.000Z (over 1 year ago)
- Last Synced: 2025-10-07T16:59:28.461Z (9 months ago)
- Topics: alcohol, aws, google-maps-api, maps
- Language: TypeScript
- Homepage: https://random-bar.niklashansen.dev
- Size: 1.36 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Random bar
Random bar is a web application built with Vite, React and Google Maps.
[](https://github.com/Y2KForever/random-bar/actions/workflows/workflow.yml)
## Introduction

- Bases search result on your current location or selected location.
- 100% self-hosted, all you need is an API key from Google.
- Can be deployed through Github Actions.
## Setup
- [Start by generating a API Key](https://console.cloud.google.com/apis/credentials)
- Make sure the API key has access to:
- Geocoding API
- Geolocation API
- Maps JavaScript API
- Places API
- create a .env file:
- VITE_GOOGLE_MAPS_API_KEY_DEV=YOUR_API_KEY_DEV
- VITE_GOOGLE_MAPS_API_KEY_PROD=YOUR_API_KEY_PROD
## Deploy with Github Actions
The current workflow is configured with AWS, if you want to use something else, you'll have to setup your own workflow.
Current workflow includes:
- Deployment to S3
- Invalidation of distribution on Cloudfront
To start using the current workflow, you'll have to setup a IAM user with access to the specific s3-bucket and distribution id for Cloudfront.
You'll also need to set these Github Action secrets:
- AWS_ACCESS_KEY_ID
- AWS_REGION
- AWS_SECRET_ACCESS_KEY
- DISTRIBUTION_ID
- VITE_GOOGLE_MAPS_API_KEY_PROD
- S3_BUCKET_NAME