This api provides enpoints that Scrape Mobafire.com for abilities and returns them in a nice formatted JSON.
Frontend for the league-ability-quiz available here: https://github.com/smicklas/LeagueAbilityQuiz
Based off of servreless-starter: https://github.com/AnomalyInnovations/serverless-typescript-starter
To simulate API Gateway locally using serverless-offline
$ serverless offline startor
$ npm run start-offlineDeploy your project
$ serverless deployRun your tests using
$ npm testWe use Jest to run our tests. You can read more about setting up your tests here.
To add environment variables to your project
- Rename
env.exampleto.env. - Add environment variables for your local stage to
.env. - Uncomment
environment:block in theserverless.ymland reference the environment variable as${env:MY_ENV_VAR}. WhereMY_ENV_VARis added to your.envfile. - Make sure to not commit your
.env.
We use ESLint to lint your code via serverless-bundle.
You can turn this off by adding the following to your serverless.yml.
custom:
bundle:
linting: falseTo override the default config, add a .eslintrc.json file. To ignore ESLint for specific files, add it to a .eslintignore file.