Build and Deploy

hackday survey site

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/

Install and deploy process

  1. npm install

  2. npm start for some deving.

  3. Update the URL in js/Survey.js to send your submits wherever. (I'm using formspree.io)

  4. (this is annoying) Create a deploy key for your repo:

    1. Run: ssh-keygen -t rsa -b 4096 -C "youremailhere@example.com" -N "" -f deploykey
    2. 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. adding deploy key
    3. Now create a new secret called DEPLOY_KEY, and paste the private key into that box. adding secret

    (Why is this required? Because GITHUB_TOKEN doesn't work. See here.)

  5. Finally, git push origin master! (this also deploys to gh_pages using JamesIves/github-pages-deploy-action)

Yay your site is live at https://username.github.com/repo!