Skip to content

flaviogf/free_games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Project

☁️ Cloud function that returns free available games at Epic store. These messages are formatted to integrate into Amazon Alexa. This project was based on Epic Games - Ruby Script made by @dvinciguerra

Requirements

[x] It should request free games at the epic store

[x] It should map returned games into messages

[x] It should return a list of message

💻 Techs

  • Ruby
  • Functions Framework
  • RSpec

🤔 How to use

Running functions locally

git clone git@github.com:flaviogf/free_games.git

cd free_games

bundle install

bundle exec functions-framework-ruby --target search

# It's running at http://localhost:8080

Running functions in Docker

git clone git@github.com:flaviogf/free_games.git

cd free_games

docker build -t flaviogf/free-games .

docker run --rm -p 8080:8080 flaviogf/free-games --source=app.rb --target=search

# It's running at http://localhost:8080

Deploying to Cloud Functions

git clone git@github.com:flaviogf/free_games.git

cd free_games

export YOUR_FUNCTION_NAME=alexa-skill-free-games-search

export YOUR_FUNCTION_TARGET=search

export YOUR_PROJECT_ID=proj-xpto

gcloud functions deploy $YOUR_FUNCTION_NAME \
    --project=$YOUR_PROJECT_ID \
    --runtime=ruby27 \
    --trigger-http \
    --entry-point=$YOUR_FUNCTION_TARGET

# Look at the command output to encounter the function URL

📝 License

This project contains the MIT license. See the file LICENSE.

About

☁️ Cloud function that returns free available games at Epic store. These messages are formatted to integrate into Amazon Alexa. This project was based on [Epic Games - Ruby Script](https://gist.github.com/dvinciguerra/9d26f7ff8fcd0bbacf9d325748dc783a) made by @dvinciguerra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published