This site was created using Gatsby, a React-based static-site generator and the Contentful CMS. To see other project dependencies, check out the project's package.json
file.
- Clone the repository:
git clone git@github.com:Scout-NU/batl-site.git
- Change directories:
cd batl-site
- Set up environment variables:
In the project directory is a file called .env.sample
. This holds all of the necessary environment variables to create this project, including the Contentful access token and the google map key.
Copy the file and add the values to the variables.
cp .env.sample .env.development
# In .env.development
GATSBY_CONTENTFUL_ACCESS_TOKEN=XXXXXXX
- Install the npm modules:
# Inside the project directory
npm install
- Run the server:
# Inside the project directory
gatsby develop
It will likely start on http://localhost:8000. When you make changes, the site will auto-refresh and display your changes.