Coder Social home page Coder Social logo

marwan01 / lol-champ-select Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 2.0 4.9 MB

Web application that allows you to get the counters of a specific League of Legends champion.

Home Page: https://marwan01.github.io/LoL-champ-select/

License: MIT License

JavaScript 11.05% TypeScript 46.91% HTML 20.66% CSS 2.50% Python 17.57% Shell 1.31%
aws aws-lambda aws-s3 lol-champ-select counter-data champion lambda cloudwatch league angular

lol-champ-select's Introduction

LoL-champ-select

Simple mobile friendly Angular app designed for League of Legends players to use during champion selection. It allows you to pick a champion, and to quickly get who counters them, according to the most updated champion data on the web.

What It Looks Like

How It Works

In order to achieve great speed, the rendering of the champions counter data is done using a json file called data.json that is located within the project assets. However, we keep our data up to date by continuously running a python script that scrapes https://lolcounter.com/ for new counter data. Here is how this is automated using AWS

Lambda Design

Screenshot

Explanation

lol-scrapy is an AWS Lambda that executes a python script (you can find it in this repo as scrapy.py) that does the scraping of the website for data. This Lambda connect with the lol-champ-select AWS S3 Bucket that hosts the production build of our Angular app, which allows the Lambda to directly update the data.json file used to display our champion counter data. In order to give you the most updated version of counter data (in case a new champion is out, the votes change, etc...), we use AWS CloudWatch Events to trigger this Lambda every 1 day.

Run Locally

Clone this Repository
git clone https://github.com/Marwan01/LoL-champ-select.git
Go to the cloned Repo cd LoL-champ-select
Install Dependencies npm install
Run npm start
On your browser, go to http://localhost:4200

Build & Deploy

Run sh deploy.sh to execute the deploy script which commits and pushes your changes to Github, creates a production build, and uploads the result to your S3 bucket.

Running Unit Tests

Run ng test to execute the unit tests via Karma.

Running e2e Tests

Run ng e2e to execute the end-to-end tests via Protractor.

Tools Used

  • Angular 8: Simple and fast front-end framework.
  • Python: Counter data was fetched from https://lolcounter.com/champions using scrapy.py.
  • AWS: S3, Lambda, CloudWatch to allow the hosting of the app, and the updating of the data.

ScreenShots

LoLchampselect

Screenshot

Lolcounter

Screenshot

This project was generated with Angular CLI version 8.3.0.

lol-champ-select's People

Contributors

alexandrei98 avatar alexandrei98-li avatar dependabot[bot] avatar marwan01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lol-champ-select's Issues

Amazon Analytics

connect to some sort of amazon analytics service to monitor website usage.

Research: AWS QuickSight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.