Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ssri from 6.0.1 to 6.0.2 #26

Open
wants to merge 369 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
369 commits
Select commit Hold shift + click to select a range
2ae3fd9
Maybe fixed CSP
krwenholz Dec 1, 2019
495a288
adjust end-of-navigation button positioning
KristopherPaulsen Dec 1, 2019
713c5bb
Merge branch 'master' of github.com:krwenholz/ourfirstbigthing
KristopherPaulsen Dec 1, 2019
b6c97e5
Reporting CSP violations
krwenholz Dec 1, 2019
0ffdf87
Working CSS with CSP
krwenholz Dec 1, 2019
0a434f5
Add workerSrc CSP directive
krwenholz Dec 1, 2019
b4e2102
Add fonts to connectSrc
krwenholz Dec 1, 2019
55da11d
Don't report CSP violations
krwenholz Dec 1, 2019
4b2749c
Fix button width issue on firefox
KristopherPaulsen Dec 1, 2019
8376aa5
Send user home after subscribing
krwenholz Dec 1, 2019
61a833b
Minor grammar fixes on Banks
krwenholz Dec 1, 2019
5a4e006
Don't show unneeded story navigation for teaser
KristopherPaulsen Dec 2, 2019
7533d70
Instagram URL Update
cody-h2wib Dec 3, 2019
8db7949
Copy and landing page changes for more action
krwenholz Dec 4, 2019
dedd2d7
quality of life for navigation and UX on landing
KristopherPaulsen Dec 4, 2019
a9fcb39
update rules for when, and when not, to show extra nav
KristopherPaulsen Dec 4, 2019
957f8d2
Add fun stats page
krwenholz Dec 5, 2019
ac8c9e2
YAML analytics
krwenholz Dec 6, 2019
1c9c601
Make user creation use navigation
krwenholz Dec 6, 2019
3360ecc
Correct CSRF populating and ads aren't blocked
krwenholz Dec 6, 2019
aae288e
Remove bad link on FAQ
krwenholz Dec 6, 2019
9ba1e04
Fix merge conflicts
KristopherPaulsen Dec 6, 2019
033e2f0
fix spelling error
KristopherPaulsen Dec 6, 2019
f89d3c0
fix teaser redirects
KristopherPaulsen Dec 6, 2019
1701ee7
fix redirect bug
KristopherPaulsen Dec 6, 2019
6d3ae2a
Looks gooooood
KristopherPaulsen Dec 7, 2019
903400b
Add new, explained, landing experience
krwenholz Dec 7, 2019
e3a91b3
Reduce machine sizes to buy more CircleCI time
krwenholz Dec 7, 2019
2030508
spacing for slightly larger screens
KristopherPaulsen Dec 7, 2019
b559006
Merge branch 'master' of github.com:krwenholz/ourfirstbigthing
KristopherPaulsen Dec 7, 2019
c56b035
Add explainer text to home page
krwenholz Dec 7, 2019
5c7a7f8
Add GitHub actions tests
krwenholz Dec 7, 2019
ba2cea4
Add reset staging to GitHub actions
krwenholz Dec 7, 2019
04e6fff
Add staging deploy with GitHub actions
krwenholz Dec 8, 2019
b6e5239
Deploy production with GitHub actions
krwenholz Dec 8, 2019
1fb338e
Remove CircleCI config
krwenholz Dec 8, 2019
1dcd4aa
Also cache cache for builds
krwenholz Dec 8, 2019
a1bb7b6
Layout and test updates for swanky new landing page (#3)
KristopherPaulsen Dec 11, 2019
8706f68
Remove some TODOs
krwenholz Dec 8, 2019
c8443e5
Display end of story prompts for more
krwenholz Dec 9, 2019
ba2f987
Upgrade for vulnerabilities
krwenholz Dec 10, 2019
b7e2997
Add action to refresh staging
krwenholz Dec 10, 2019
65074bf
Correct login/delete redirects
krwenholz Dec 10, 2019
7584ef7
Fix story spec
krwenholz Dec 12, 2019
e2f1e7c
Correct non-subscriber spec
krwenholz Dec 12, 2019
d5d5513
Landing Page Updates: The sequel. (#4)
KristopherPaulsen Dec 14, 2019
34c3328
Shorter teasers for smaller attention spans... squirrel (#6)
KristopherPaulsen Dec 15, 2019
ed8adf6
Add a sort of trial without ads
krwenholz Dec 14, 2019
86fa1a7
Refactor to split out editor graph
krwenholz Dec 15, 2019
7c48276
Use stars for final graph nodes
krwenholz Dec 15, 2019
71e6905
Only subscribers get stuff
krwenholz Dec 15, 2019
7c76fa8
Update password reset email look (#8)
KristopherPaulsen Dec 21, 2019
25923d1
settings page overhaul (#9)
KristopherPaulsen Dec 27, 2019
f6cb08b
Basic working editor improvements
KristopherPaulsen Dec 29, 2019
58e3ac7
remove old unused animations
KristopherPaulsen Dec 29, 2019
200de20
remove orphaned 'only' flag
KristopherPaulsen Dec 29, 2019
e87b246
checking for storyNode param is redundant, as stories default to start
KristopherPaulsen Dec 29, 2019
76e4725
Move to bunyan logging
krwenholz Dec 24, 2019
7ef2e1b
Fix seeds
krwenholz Dec 29, 2019
a438a5c
Correct merge error
krwenholz Dec 29, 2019
eda9937
Correct bunyan usage on client
krwenholz Dec 29, 2019
da1d7f3
Merge branch 'master' into improve-editor-for-save-and-loading-files-…
KristopherPaulsen Dec 29, 2019
e0d44c8
Update seans forgotten forest squashed (#11)
KristopherPaulsen Dec 31, 2019
6e5f8a2
Hot fix for test after last merge
KristopherPaulsen Dec 31, 2019
4176407
Merge branch 'improve-editor-for-save-and-loading-files-squashed'
KristopherPaulsen Jan 1, 2020
9f62562
Add basic ElasticSearch
krwenholz Dec 23, 2019
44d34e1
Create a living, breathing ElasticSearch setup
krwenholz Dec 31, 2019
b4a8ef5
Fix CSRF protection check
krwenholz Jan 4, 2020
5f7cdb5
Correct some tests
krwenholz Jan 4, 2020
1d5a966
Add badge icons for Forgotten Forest
krwenholz Jan 4, 2020
9cc0751
Correct access to hooks data
krwenholz Jan 4, 2020
9df2c75
we can now start importing stuff! (#13)
KristopherPaulsen Jan 5, 2020
f08c09b
underscore for explicit private components
KristopherPaulsen Jan 5, 2020
cec03a7
update imports
KristopherPaulsen Jan 5, 2020
93b1d43
refactor imports and component directory
KristopherPaulsen Jan 5, 2020
f009634
refactoring to private components
KristopherPaulsen Jan 5, 2020
234071e
New and Improved Editor
KristopherPaulsen Jan 5, 2020
3d7af6f
Attempt to kickoff pipeline
KristopherPaulsen Jan 25, 2020
ceebdac
Upgrade and fix cypress on CI
krwenholz Jan 26, 2020
269e032
Enable SSL in dev
krwenholz Jan 11, 2020
331d0bf
Mark package private
krwenholz Jan 26, 2020
58ec680
Fix generalRelease and split out history management
krwenholz Feb 2, 2020
d59b2f4
Add Playing Detective
krwenholz Feb 2, 2020
b37cd4e
Weird ass bug fixes
krwenholz Feb 2, 2020
6c7dc4a
Add small waits on create/delete test
krwenholz Feb 2, 2020
90b2cdd
update landing page overhaul
KristopherPaulsen Feb 3, 2020
f539509
fix spelling errors
KristopherPaulsen Feb 3, 2020
f580095
no double upsell
KristopherPaulsen Feb 3, 2020
1b27ec5
fix first half speed problems
KristopherPaulsen Feb 3, 2020
5782b26
Merge branch 'master' into new-landing-page-flow-squashed
KristopherPaulsen Feb 8, 2020
b39b7a4
wip
KristopherPaulsen Feb 8, 2020
1dc5c28
Merge branch 'master' into make-the-editor-faster
KristopherPaulsen Feb 15, 2020
c05647e
update faq
KristopherPaulsen Feb 15, 2020
516bad9
fix speeling errors
KristopherPaulsen Feb 15, 2020
10bcc5f
Merge branch 'master' into make-the-editor-faster
KristopherPaulsen Feb 15, 2020
9f2f995
use func callbacks
KristopherPaulsen Feb 15, 2020
d2d51e7
Correct Playing Detective preview
krwenholz Feb 16, 2020
4f96994
WIP
KristopherPaulsen Feb 16, 2020
d667103
add tabs
KristopherPaulsen Feb 22, 2020
ae330e8
remove old styles
KristopherPaulsen Feb 22, 2020
49ab0c2
updates
KristopherPaulsen Feb 22, 2020
50d853d
update callback type
KristopherPaulsen Feb 22, 2020
f025d5a
add graph back
KristopherPaulsen Feb 22, 2020
2589171
add no decision button back
KristopherPaulsen Feb 22, 2020
d75723a
fix checkbox
KristopherPaulsen Feb 22, 2020
498466b
Formatting
KristopherPaulsen Feb 22, 2020
84d634e
remove final on start node
KristopherPaulsen Feb 22, 2020
3011f1f
sane defaults
KristopherPaulsen Feb 23, 2020
e7fa3c8
Basic Alexa HelloWorld
krwenholz Jan 13, 2020
0ae46d6
Make Alexa speak
krwenholz Jan 19, 2020
484f0f5
Make Alexa list stories and get one
krwenholz Jan 30, 2020
a8c1d9b
List things with Alexa
krwenholz Feb 2, 2020
cf1dcf0
Navigate stories with choices on Alexa
krwenholz Feb 10, 2020
04ad4f2
Add story go back and revert on Alexa
krwenholz Feb 16, 2020
c096ed5
Clean up Alexa code
krwenholz Feb 16, 2020
341acaa
Provide simple option text on Alexa
krwenholz Feb 17, 2020
ebef724
Protect Alexa stories with stubbed subscription
krwenholz Feb 23, 2020
1ac1f47
Clean up Alexa after review
krwenholz Feb 23, 2020
740e6a5
Correct story slug fetch
krwenholz Feb 23, 2020
66468ee
Fix general_release check
krwenholz Feb 25, 2020
abc40eb
updating
KristopherPaulsen Feb 27, 2020
e89ebd4
add the apprentice
KristopherPaulsen Feb 29, 2020
c21b4b7
orc orc orcs!
KristopherPaulsen Feb 29, 2020
4233fdd
all teh stories
KristopherPaulsen Feb 29, 2020
bcd71fb
add emojis!
KristopherPaulsen Feb 29, 2020
a0f7d75
second set of emojis
KristopherPaulsen Feb 29, 2020
6b09132
emojis for everyone!
KristopherPaulsen Feb 29, 2020
ebe2b17
fix speeling
KristopherPaulsen Feb 29, 2020
1c14e95
Merge branch 'master' into short-stories-release
KristopherPaulsen Mar 1, 2020
71a5452
update tests
KristopherPaulsen Mar 1, 2020
261fbe7
kick through pipeline
KristopherPaulsen Mar 1, 2020
8202cde
WIP
KristopherPaulsen Mar 7, 2020
0250d5d
WIP
KristopherPaulsen Mar 7, 2020
548cee4
WIP
KristopherPaulsen Mar 7, 2020
09b1d42
WIP
KristopherPaulsen Mar 7, 2020
17ecb61
WIP
KristopherPaulsen Mar 8, 2020
81453c4
WIP
KristopherPaulsen Mar 8, 2020
9a7c7dd
Merge branch 'master' into make-the-editor-faster
KristopherPaulsen Mar 8, 2020
a2c1eeb
normalize binding
KristopherPaulsen Mar 8, 2020
58d724a
wip
KristopherPaulsen Mar 8, 2020
1f87abc
hotfix edge case with undefined values
KristopherPaulsen Mar 8, 2020
a50262d
add simple error feedback
KristopherPaulsen Mar 21, 2020
b79dc98
simple syntax error messaging
KristopherPaulsen Mar 21, 2020
9a8daa1
simple error formatting
KristopherPaulsen Mar 21, 2020
8ca4fa0
refactoring for simplicity
KristopherPaulsen Mar 21, 2020
08fc91a
This is forcing focus CONSTANTLY, and breaking the editor
KristopherPaulsen Mar 22, 2020
10292e8
inadvertently changed saved format
KristopherPaulsen Mar 22, 2020
91f1f91
Add OAUTH support for Alexa
krwenholz Mar 1, 2020
6c4383e
Remove ElasticSearch because it's not acutally free
krwenholz Mar 9, 2020
c76b7e2
Clean up some OAUTH
krwenholz Mar 13, 2020
7964e2d
npm run format
krwenholz Mar 14, 2020
38458cb
Refactor and improve Alexa interceptor usage
krwenholz Mar 14, 2020
576ac8a
Mostly working oauth routes
krwenholz Mar 16, 2020
3af7235
Record command to grab weblogs
krwenholz Mar 17, 2020
15a9167
Simplify, maybe, our oauth routes
krwenholz Mar 20, 2020
70c2ce3
Nice traffic graph script
krwenholz Mar 22, 2020
40a7839
Refactor Alexa with real express routes
krwenholz Mar 26, 2020
991b71a
Use real links and home
krwenholz Mar 27, 2020
f557f4f
Correct Adventure button display reactivity
krwenholz Mar 27, 2020
9e922a6
Preload stories on preview and remove adventure assumption
krwenholz Mar 28, 2020
5ba5764
Use human friendly prefixes on urls
krwenholz Mar 28, 2020
b22696e
Fix regexp in idFromSlug
krwenholz Mar 28, 2020
1a40b95
add simple feedback
KristopherPaulsen Mar 29, 2020
89983e4
Rename create-delete-account to spec
krwenholz Mar 29, 2020
e1e2567
Tweak some logs
krwenholz Mar 29, 2020
cc40682
Update some meta information and sitemap
krwenholz Mar 29, 2020
127ece2
Add fullstory, probably
krwenholz Mar 31, 2020
3f84ceb
Add fullstory to CSP
krwenholz Mar 31, 2020
9340f86
More permissive with Fullstory
krwenholz Apr 1, 2020
405f722
Make the_royal_fool public
krwenholz Apr 2, 2020
e7b0a36
Add goblins_on_the_warfront
krwenholz Apr 2, 2020
6b3a13b
authors can now save meta info about stories
KristopherPaulsen Apr 5, 2020
5247b05
Add user search and some home page improvements
krwenholz Apr 7, 2020
f46d886
protect against accidentally overwriting nodes
KristopherPaulsen Apr 10, 2020
df5b8c9
fix odd page jumping
KristopherPaulsen Apr 11, 2020
5cf1385
less fragile tests
KristopherPaulsen Apr 14, 2020
a4496b2
Kill the intro
krwenholz Apr 14, 2020
3d1bf69
Stop-gap for page sizing
KristopherPaulsen Apr 16, 2020
8a59bc3
pre-inline-feedback setup, with better error messages
KristopherPaulsen Apr 16, 2020
8852f45
Add minor fixes for oauth
krwenholz Apr 18, 2020
572cd33
Log more details on /oauth/token
krwenholz Apr 18, 2020
c560a9f
Fix body/header logger
krwenholz Apr 18, 2020
49df2cb
Do a widdle import cleanup
krwenholz Apr 18, 2020
9eb2400
Log and maybe fix basic strategy
krwenholz Apr 18, 2020
46e0f55
Fix oauth code queries, maybe
krwenholz Apr 19, 2020
d6bbe97
Split out separate oauth statements
krwenholz Apr 19, 2020
e2ab233
Add a bunch of oauth logging
krwenholz Apr 19, 2020
d9b279d
Correct pg calls for capitalization
krwenholz Apr 19, 2020
5b50c34
Fix hr CSS
krwenholz Apr 19, 2020
a9d3a10
Record visits for anonymous users
krwenholz Apr 20, 2020
43b4e34
Make Alexa link accounts and speak nice words
krwenholz Apr 22, 2020
76ae790
Fix W&D title assertion
krwenholz Apr 22, 2020
faaf06f
Let users control access tokens
krwenholz Apr 24, 2020
dd96ea1
Attempt to fix a sometimes test flake
krwenholz Apr 25, 2020
f0ade33
Use correct user variable
krwenholz Apr 25, 2020
cfc8236
Fix import
krwenholz Apr 25, 2020
f51c0e5
Correct userNeedsUpdating check for Alexa
krwenholz Apr 25, 2020
dba043d
Correct sessionUser usage
krwenholz Apr 25, 2020
891216f
Better buttons on previews
krwenholz Apr 26, 2020
b7f8f7b
Update sitemap for home removal
krwenholz Apr 30, 2020
f52d520
Add new stats to experimental script
krwenholz Apr 30, 2020
8e35e9f
overramp editor for cleaner layout based on feedback, and better erro…
KristopherPaulsen May 2, 2020
f28df7c
Fix a few session bugs and improve logging
krwenholz May 2, 2020
4240f6f
Move some DB and record Alexa visits
krwenholz May 2, 2020
909ac59
Save progress in Alexa
krwenholz May 3, 2020
52e9e90
Add saves to Alexa
krwenholz May 4, 2020
22a315d
Add some fun scripts
krwenholz May 10, 2020
e788ce0
fixing layout up
KristopherPaulsen May 16, 2020
07656d6
WIP
KristopherPaulsen May 17, 2020
536708e
constrain img size
KristopherPaulsen May 17, 2020
94db062
Enable immediate story start on Alexa launch
krwenholz May 17, 2020
062cf73
Fix Alexa story id setting
krwenholz May 17, 2020
9be733e
Rename Alexa handlers with regular JS file style
krwenholz May 17, 2020
425df22
Add resume story intent for Alexa
krwenholz May 17, 2020
34d22e7
story-card images
KristopherPaulsen May 28, 2020
7e254b5
add images
KristopherPaulsen May 28, 2020
ae62840
wip
KristopherPaulsen May 28, 2020
c8cb879
update images
KristopherPaulsen May 28, 2020
25e3957
WIP
KristopherPaulsen May 28, 2020
2968cba
that shit looks gooooood
KristopherPaulsen May 28, 2020
9ea99b1
update tests
KristopherPaulsen May 31, 2020
9d07a2a
Merge branch 'create-story-cards'
KristopherPaulsen May 31, 2020
a4402bc
fixes
KristopherPaulsen Jun 6, 2020
3335c6e
make test less fragile to url changes
KristopherPaulsen Jun 6, 2020
7bcaeb6
add test ids for robustness
KristopherPaulsen Jun 6, 2020
c71bded
less fragile tests
KristopherPaulsen Jun 6, 2020
b25b2d3
fix badge tests
KristopherPaulsen Jun 6, 2020
af16dbf
add wait-time to improve test flakiness
KristopherPaulsen Jun 6, 2020
32ceeb0
Record free story usage
krwenholz May 31, 2020
39ad01a
Use knowledge of free story
krwenholz Jun 13, 2020
9d5e213
Test and tweak free stories to success
krwenholz Jun 16, 2020
848875f
Update some copy after the free story update
krwenholz Jun 16, 2020
9717600
Fix visits test
krwenholz Jun 16, 2020
14a6b0d
add fallback placeholder
KristopherPaulsen Jun 16, 2020
ea5fef9
add fallback images
KristopherPaulsen Jun 16, 2020
3e2a8e9
Maybe fix some racing conditions in non-sub test
krwenholz Jun 16, 2020
176ac73
Use the correct password in tests
krwenholz Jun 18, 2020
c6d1aa0
Add slightly more helpful Alexa text
krwenholz Jun 20, 2020
7a40adf
spacing for readability
KristopherPaulsen Aug 15, 2020
8312fad
Add content warning UI
krwenholz Aug 16, 2020
e3fcc7b
Add content warnings with real plumbing
krwenholz Aug 17, 2020
dbc00a9
Add content warnings to stories
krwenholz Aug 18, 2020
17aa6cb
Remove payments and subscriptions
krwenholz Nov 7, 2020
e18688e
Upgrade packages
krwenholz Nov 7, 2020
fb3400b
Remove staging refresh
krwenholz Nov 7, 2020
9463871
Add Super Lia story
krwenholz Nov 11, 2020
e951c1f
Add emojis for Super Lia badges
krwenholz Nov 11, 2020
7b8a0b5
Add missing fields for Super Lia
krwenholz Nov 11, 2020
b513a44
Correct placeholder title change
krwenholz Nov 11, 2020
c101950
Bump ssri from 6.0.1 to 6.0.2
dependabot[bot] Apr 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"presets": ["@babel/preset-env"]
"presets": ["@babel/preset-env"],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-regenerator", "@babel/plugin-transform-runtime"]
}
}
}
107 changes: 0 additions & 107 deletions .circleci/config.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CD
on:
push:
branches:
- master
paths-ignore:
- stories*
- postgres*
- test*
- infrastructure*
- cypress*
- scripts*

jobs:
jest:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 11.6
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache cache
uses: actions/cache@v1
with:
path: ~/.cache # some cached files, cypress, are stored here
key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-cache-${{ env.cache-name }}-
${{ runner.os }}-cache-
${{ runner.os }}-
- run: npm install
- run: npm run jest
deploy-production:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@master
- name: login
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_AUTH_TOKEN_JANUARY_2020 }}
with:
args: container:login
- name: push
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_AUTH_TOKEN_JANUARY_2020 }}
with:
args: container:push -a turning-point-tales web
- name: release
uses: actions/heroku@master
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_AUTH_TOKEN_JANUARY_2020 }}
with:
args: container:release -a turning-point-tales web
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ yarn-error.log
/__sapper__
.env
!postgres/*
test.js
cypress/logs
25 changes: 0 additions & 25 deletions .jsbeautifyrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"svelteSortOrder": "scripts-styles-markup",
"svelteStrictMode": true,
"tabWidth": 2,
"svelteBracketNewLine": true,
}
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM node:11
WORKDIR /usr/src/app

COPY package*.json webpack.config.js ./
RUN npm install

COPY config ./config
COPY src ./src
COPY static ./static

RUN npm install
COPY src ./src

RUN npm run build

Expand Down
39 changes: 23 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
> https://github.com/expressjs/morgan
> https://goaccess.io/man#examples # Processing logs incrementally
> TODO(kyle): share buttons
> https://gist.github.com/chrisjlee/5196139
> TODO(kyle): link buttons for facebook, twitter, instagram
![](https://github.com/actions/hello-world/workflows/CD/badge.svg)

# To get started

npm install
npm run dev
npm install
npm run dev

Because we like using databases though, you probably want to connect locally or to Heroku
with the `DATABASE_URL` environment variable. You can grab the Heroku one with

heroku pg:credentials:url
heroku pg:credentials:url

Set this before starting the server and you should be good to go.

# Database seeds

We have a script! Run

CONNECTION_STRING='SOME_URL_FOR_A_DATABASE' npm run db:seed

# Test

docker run -it -v $PWD:/cypress -w /cypress -e CYPRESS_BASE_URL=http://meine.krwenholz.com:3000 cypress/included:3.4.1 cypress open --browser chrome
CONNECTION_STRING='SOME_URL_FOR_A_DATABASE' npm run db:seed

# Testing

docker run -it -v \$PWD:/cypress -w /cypress -e CYPRESS_BASE_URL=http://meine.krwenholz.com:3000 cypress/included:3.4.1 cypress open --browser chrome

# Deploy

All of this is in our CircleCI file as well :)

docker build .
heroku container:push web
heroku container:release web
docker build .
heroku container:push web
heroku container:release web

# Traffic logs

```
./traffic_graphs.sh
```

# Sitemap

```
npm run sitemap-generator --last-mod --filepath static/sitemap.xml turningpointtales.com
```
Empty file added __mocks__/.keep
Empty file.
18 changes: 18 additions & 0 deletions certs/configuration.kyle.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no

[req_distinguished_name]
C = US
ST = WA
O = How Hard Would It Be LLC - Test
CN = Testing Things

[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @subject_alternate_names

[subject_alternate_names]
DNS.1 = meine.krwenholz.com
21 changes: 21 additions & 0 deletions certs/server.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDjDCCAnSgAwIBAgIUOjhnLZSh+p7Ha6BRxKZhcofD7TAwDQYJKoZIhvcNAQEL
BQAwXTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldBMS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Z8JIw
Eul2EkY5ijPvUgiMkL4F3YoZyJVlZK3B5WzHQcHDZR6ddwv8ScYWcWXYC0p2HgpY
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions certs/server.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDTGzF8nsHUgkmh
SfcYaBAdPWj0MwkWsLjfTimXBoIBQ6jjLsyufTANfgnVz8VRBjHUGeehUiWARHP3
oZYS9Njl6lUPF5UdkwNVmN26nbTp4J1fosN20AQbWSQgzqQhEC9V1ZDiRt9MWHjY
dKnCJ/8V/o9sg9o1VZWeHlgxkORqPuBSwn97+V9jd9iuIXo7Z/DngGrTklXNzUNB
w+zhbcI+BFpR64/05SqazcIf7+inFAk5YnwK36Ennu7CLY5n0Mzm9HrVM3/1Dt34
/T0B3plShHkNniHECKOd3eGfcQePyn5i2/jCOW3kC9RUMrPrzDYM/vLVjEKSI6Ve
+E2zz00tAgMBAAECggEAEt6hY8RFCxvCPRqBbbsPha2RjhJpw490VvGDoi5AvKAx
nmz2erpR60LS2jvCJWXqWk0eeTsAgyCbRQ06fuNH5/U0OS8gcw5LBAGwABhMrYMY
Tg4cbqhVVaR4KD6QSSxLLt7yHme7WfWmh6KV8fblRDAG3epDPPUzdHi95WBQKnbe
rN7IUrZXGBUUEaL8sa2UgyXpfpYALkqCmTsL3qo9QtGCIQ2Vk+jYIU9I+DoditbW
xciEwUjgH09EjY5qCE1ha7xVF7w6adTyEW1uboOLxoSa7xI04MfbGB8fVFFgwVt3
24pCbfXVnD+s4mbk7s6yOv4P2ivp7lQR+KPvJ7IlQQKBgQD3+ihDIS3FT3Zv/mkn
X5Dw1Kla/jwixf/PQbL3uj6zXkV4wmV4hL2jTxNo8AgB5U4zSw1pk4N52dAyrNgC
s36oJCUmQCnWmAA9pk6auuX2CRUJ+LMAUSghPAoc6OwMel5EzTu2Ez4pS6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