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 start
or
$ npm run start-offline
Deploy your project
$ serverless deploy
Run your tests using
$ npm test
We 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.example
to.env
. - Add environment variables for your local stage to
.env
. - Uncomment
environment:
block in theserverless.yml
and reference the environment variable as${env:MY_ENV_VAR}
. WhereMY_ENV_VAR
is added to your.env
file. - 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: false
To override the default config, add a .eslintrc.json
file. To ignore ESLint for specific files, add it to a .eslintignore
file.