Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewcook/beerbuddy-web
The BeerBuddy client web application, built with Next, React, and GraphQL (Apollo).
https://github.com/drewcook/beerbuddy-web
apollo graphql nextjs react
Last synced: 5 days ago
JSON representation
The BeerBuddy client web application, built with Next, React, and GraphQL (Apollo).
- Host: GitHub
- URL: https://github.com/drewcook/beerbuddy-web
- Owner: drewcook
- Created: 2021-03-27T00:36:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T07:11:08.000Z (almost 3 years ago)
- Last Synced: 2024-04-10T10:01:10.932Z (9 months ago)
- Topics: apollo, graphql, nextjs, react
- Language: JavaScript
- Homepage: https://beerbuddy.io
- Size: 1.63 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BeerBuddy Web
This is the web application for BeerBuddy. This app is comprised of Next.js, React, and GraphQL (Apollo).This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:5440](http://localhost:5440) with your browser to see the result.
### Secrets
This application relies on an API secret used for accessing the third-party data with [BreweryDB](https://brewerydb.com). If you choose to play with the beer and brewery data locally, you will need an API key with BreweryDB. Since you probaby do not have one laying around, you can still work with a limted dataset using their sandbox API. This is stored in the `.env` file as `BREWERYDB_SANDBOX_API_HOST`.I have updated the application to use the BreweryDB sandbox API by default with the `USE_SANDBOX_API` environment variable. Unforutantely, the sandbox API is currently under maintenance from BreweryDB team and is being improved.
If you do happen to have a valid API key however, update `USE_SANDBOX_API` to be `false`, and add in `BREWERYDB_API_KEY` to an `.env.local` file. This should allow the app to recognize working with the full-featured API instead.
**The production app uses the full-featured API. Use the demo link below to view the app.**
## Deployments
The app currently deploys to a Heroku environment. The current production application [can be viewed here](https://beerbuddy.io/).