A single page site using react. It contains a survey. Uses the awesome Parcel.js to obviate all thinking.
See: https://colevscode.github.io/hackday/
-
npm install
-
npm start
for some deving. -
Update the URL in
js/Survey.js
to send your submits wherever. (I'm using formspree.io) -
(this is annoying) Create a deploy key for your repo:
- Run:
ssh-keygen -t rsa -b 4096 -C "youremailhere@example.com" -N "" -f deploykey
- Create a new Deploy Key, it doesn't matter what you call it, and paste the content of
deploykey.pub
into the box. Be sure to click Allow Write Access. - Now create a new secret called
DEPLOY_KEY
, and paste the private key into that box.
(Why is this required? Because
GITHUB_TOKEN
doesn't work. See here.) - Run:
-
Finally,
git push origin master
! (this also deploys togh_pages
usingJamesIves/github-pages-deploy-action
)
Yay your site is live at https://username.github.com/repo
!