dnordgren / derbruden

Home Page:http://derbruden.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

derbruden

Develop

It's recommended to use the Node Version Manager (nvm) to manage your Node.js and NPM version:

nvm use

The site is build with Gatsby.

npm i -g gatsby-cli@2.19.3

Run the following command to build the static front-end website locally:

gatsby develop

The site is served at http://localhost:8000. The GraphQL endpoint is at http://localhost:8000/___graphql.

If you'd like to build and host the production site locally, run:

gatsby build && gatsby serve

The site is served at http://localhost:9000.

Deploy

The site is hosted on Amazon S3 and deployed via Gatsby's tooling. Still TODO: Set up CloudFront.

In order to deploy, run the command:

yarn run deploy

This uses the aws CLI. If you have multiple profiles set up in your credentials, you can declare the correct credentials like:

AWS_PROFILE=yourprofilename yarn run deploy

Ideas

Set up trade activity notifications. Poll the following endpoint with headers via new API SDK:

https://fantasy.espn.com/apis/v3/games/ffl/seasons/2021/segments/0/leagues/794521/communication/

X-Fantasy-Filter: {"topics":{"filterType":{"value":["ACTIVITY_TRANSACTIONS"]},"limit":25,"limitPerMessageSet":{"value":25},"offset":0,"sortMessageDate":{"sortPriority":1,"sortAsc":false},"sortFor":{"sortPriority":2,"sortAsc":false},"filterDateRange":{"value":1625439600000,"additionalValue":1628809199999},"filterExcludeMessageTypeIds":{"value":[106,202,232,184,183,229,228,227,230,231,188]}}}~]

TODO

  • Update vulnerabilities
npm audit
npm audit fix --force

About

http://derbruden.com

License:MIT License


Languages

Language:TypeScript 75.5%Language:JavaScript 24.1%Language:CSS 0.3%Language:HTML 0.1%