It uses sample data from MongoDB - it's originaly data from Untappd API - represents actual beer menu on taps in one of bars.
There is a simple GUI with 2 options:
- by clicking
Fetch New Data
you run query to graphQL and get new portion of data. - by toggling switch you can change graphical presentation from bar chart to pie chart. Data on charts is beer names with some random number.
- Clone the repo.
- Go to repo folder.
- Go to
/server
folder. - Run
npm i
. - Create
.env
file. - Add value to
.env
.
MONGO_CONNECTION_STRING=mongodb+srv://polyteia:[email protected]/?retryWrites=true&w=majority
This will connect backend to tes MongoDB. Test user has read-only privileges.
- Run
npm run start:dev
. This will start nest.js backend on http://localhost:3000.
Apollo GUI is on http://localhost:3000/graphql
- Go to
/client
folder. - Run
npm i
. - Run
npm run dev
. - Open http://localhost:3001 in your browser.