Website for the Design, Technology, and Research (DTR) program at Northwestern University. View live at http://dtr.northwestern.edu/.
-
Clone the repository, and create a
.env
file with the following:AIRTABLE_API_KEY=<api-key-for-airtable> AIRTABLE_BASE_ID=<base-id-for-airtable> REVALIDATE_TIME="30"
-
Run
yarn install
to install packages.
To develop locally, run yarn dev
and navigate to localhost:3000
in your browser. Changes in code will automatically cause the website to be re-built and update the browser.
To test a production build:
yarn build
yarn start
Once started, navigate to localhost:8080
in your browser.
We use DigitalOcean's App Platform to host https://dtr.northwestern.edu/. It is configured to re-build the website whenever changes are pushed to the main
branch of this repository. Because of that, we recommend you create a new branch when you have changes that you want to make, and create a pull request to merge into main
once they are completed and tested.