Live Site (version 1, previous project): https://goodgovproject.com/
In-Development Site (version 2, current project): https://digital-testimony-dev.web.app
-
Fork a copy of the main repo to your GitHub account.
-
Clone your fork:
git clone https://github.com/YOUR_GITHUB_NAME/advocacy-maps.git
- Add the main repo to your remotes:
cd advocacy-maps
git remote add upstream https://github.com/codeforboston/advocacy-maps.git
git fetch upstream
Now, whenever new code is merged you can pull in changes to your local repository:
git checkout master
git pull upstream master
- To contribute a feature, open a feature branch off
master
:
git checkout master
git checkout -b MY_FEATURE
git push -u origin MY_FEATURE
Use git push
to upload your commits to your fork. When you're finished, open a pull request to merge your branch into codeforboston/master
- Make sure that you have
node
andyarn
installed. You can download Node directly here or use a tool like nvm. To install yarn, runnpm i -g yarn
after installing node. - Install dependencies with
yarn install
- Start the development server with
yarn dev
- Open the app at https://localhost:3000 in your browser
The site runs on Firebase and is deployed using Github Actions. The site is deployed automatically whenever we push to the master
branch. Deployments should "just work" but if the site isn't updating, check the status of the deployment action.
Take a look at the pages/browse.tsx
page:
export default createPage({
v2: true,
title: "Browse",
Page: () => {
return (
<>
<h1>Browse</h1>
...
</>
)
}
})
Your page content goes in Page
, and will be wrapped in a layout component. Setting v2
to true
will use the V2Layout
, which will render the content inside a bootstrap Container
. The page is rendered by _app.tsx
.