The day-of site for the 2021 hackathon
- Livesite Designs (in Figma)
- A guide for using Git and GitHub (part of a guide put together for hackers last year)
- The livesite itself (production!): https://live.hackbeanpot.com/
First and foremost, make sure you have Node installed.
- Clone the repository (
git clone https://github.com/HackBeanpot/livesite-2021
) - Move into the new local repo (
cd website-2021
) - Install dependencies (
npm install
) - Launch the environment locally (
npm start
), then open http://localhost:3000 to view it in the browser.
In order to run this locally, you will need an Airtable API key which you can obtain from our Airtable account page (the login for this page can be found in lastpass). Create a file at the root directory (with the gitignore and stuff, NOT in the /src folder!) called .env
. The contents of this file should just be the line REACT_APP_AIRTABLE_KEY=<your api key>
. Don't put quotation marks or anything around the key value. DO NOT commit this file to github!! If you need help with this, message @sarah
You can use the custom React hook that we created which will handle the asynchronous call and fetch the data. You will have to pass in two variable that we call basePath
and tableQuery
, which you can find in table's URL: https://api.airtable.com/v0/[basePath]/[tableQuery]
.
- Create a branch, named something like
name-typeofchanges
(ex.sarah-navbar
)- Pull your changes from the
main
branch - Commit your changes to your branch as you work on them
- Pull your changes from the
- Create a pull request - Include a short description of what you worked on screenshots of the changes you made
- You can create the pull request by going to branches -> select your branch -> click "Create Pull Request" (make sure all of your changes have been pushed to
origin
first)
- You can create the pull request by going to branches -> select your branch -> click "Create Pull Request" (make sure all of your changes have been pushed to
- Tweak your changes based on any feedback you get.
Also, feel free to give constructive feedback on anyone else's pull requests. The tech team will review your changes and merge them if they look good.
Most importantly, reech out for help on slack if you have any questions!
- Main branch (
main
): production-ready site that gets deployed. Merging should only happen from development to master. - Development branch (
develop
): branch for developers to merge in their features as they are completed. PR should be made from feature branch to develop. - Feature branches: Each developer should make a new branch for their work from the development branch in the following format:
sarah-navbar
(lowercase first name, short description of changes). Make a pull request into develop after your work has been completed. Please note that new experimental changes to your code should not be made when a PR is open.