Skip to content
main
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Favicon

Ocean artUp

Netlify Status CI License GitHub repo size GitHub last commit

Ocean artUp is a research project funded by an Advanced Grant of the European Research Council. It aims to study the feasibility, effectiveness, associated risks and potential side effects of artificial upwelling in increasing ocean productivity, raising fish production, and enhancing oceanic CO2 sequestration.

This site is built with Svelte and Contentful.

Setup

Running this site locally requires git and yarn (or npm). With those installed, do:

  1. Clone the repo and change into its directory.

    git clone https://github.com/janosh/ocean-artup && cd ocean-artup
  2. (optional) Setup git hooks by setting core.hooksPath and granting execute permission.

    git config core.hooksPath src/utils/gitHooks
    && chmod -R u+x src/utils/gitHooks
  3. Install dependencies.

    yarn
  4. Copy .env.example to .env.

    cp .env.example .env

    Then open .env and insert your Contentful space ID and access token. These are found in the settings menu of a Contentful space under 'API keys'.

  5. Start the dev server.

    yarn dev

Deploy

To publish this site to netlify:

  1. Create an account with netlify.

  2. Install the netlify-cli.

  3. Login to your account.

    netlify login
  4. Connect your GitHub repo with your netlify account for continuous deployment.

    netlify init
  5. Create a production build.

    yarn export
  6. Finally deploy the site with

    netlify deploy