-
This is the repository for the FF ECC Grants website (ff-ecc-grants.org)
-
This repo represents a static site which requires compilation, but can then be served as a static resource
-
This site is hosted on IPFS and is compatible with relative URLs, for IPFS and IPNS gateway paths
-
The site's resources are served statically, but internal navigation is virtualized: in other words, the site acts as an SPA when browsed on the client
-
While a static site, this app can be extended at any time to a full application by changing the
target
in settings
- Requires nodeJS and has been tested on node 16
- Uses a Vue framework, nuxtJS, deployed in static mode
To build this site locally
- Clone this repo
- Make sure NodeJS 16 or newer is installed
- To build a static site
- Run
npm ci && npm run generate
- A directory
dist
is created, which contains the static site output
- Run
- To run locally, for features like hot reload
- Run
npm ci && npm run dev
- The site will be available in real time via a localhost URL
- Resources are compiled in this process; for example, all SCSS styles are converted to CSS and tree-shaken
- Run
Key areas of this repo include
/pages
- All page templates/components
- Each reusable collection of elements is abstracted to a component, and most components accept various properties that determine the way they are rendered/static
- Static resources which will be available post-compile/assets/scss
- The global styles for the app are available here in SASS/SCSS, more specific styles can be found at the bottom of.vue
pages and components (single file components on vuejs.org)/assets/svgs
- Contains iconography or other small vectors, in SVG format/content
- The site's content, which is edited using the Forestry CMS
- Staging -
develop
builds toa non public url
- Production -
main
builds toff-ecc-grants.org
- Content -
content
is a branch that the CMS writes to- When pull requested against
main
, thecontent
branch will be auto approved by a Github action
- When pull requested against
- Each PR will also generate an IPFS build preview link, so it can be validated before being merged
- Editing content directly
- Structured content can be found in
json
files - Written paragraph-type content can be found in
md
files, in markdown format - See the
content/pages/
directory
- Structured content can be found in