Simple chatbot which recommends Czech books from 100 Years, 100 Books exhibition.
Be sure to have Node >= 6 installed.
Clone
git clone https://github.com/awfulthings/fakin-chat.git && cd fakin-chat
Install dependencies
yarn
Run
yarn start
Books metadata are fetched from Google Books API.
You may need to:
- Set up Google Cloud project
- Generate API key
- Enable Google Books API within your project
Call this with your Google Books API key to fetch data.
- presumes that you have
raw.data.json
with books - outputs
data.json
node DataHelper.js fetch <GOOGLE BOOKS API KEY>
Scrape databazeknih.cz and steal book urls.
- mutates
data.json
Get book urls
node DataHelper.js stealUrl
Get book thumnails and descriptions
node DataHelper.js stealCover
- presumes that you have
src/data.json
with fetched metadata - outputs
src/recommendation-data.json
node DataHelper.js process
- Install firebase cli
- Run
yarn build
before deploy to generate static app.
Change (select) enviroment
firebase use staging # staging or production
Deploy to selected enviroment
firebase deploy
Deploy to production
firebase deploy -P production