This repository contains all the frontpage code for the new divritenis.lv website.
Demo: https://divritenis.netlify.app/
This is a fresh redesign and complete overhaul of "Latvian Cyclists' Union" website.
Frontend is a Jamstack application, built with Gatsby, React, Bulma and other cool modern web technologies and hosted on Netlify. Project builds on Gatsby Cloud.
Data is sourced from WordPress backend, which is used as a headless CMS.
To run this application locally:
- Clone this repo
- Create
.env
file using contents from.env-template
- If you have Google reCAPTCHA key change
GATSBY_RECAPTCHA_SITE_KEY
value fromtemplate
to the key, otherwise leave it as is - Change
GATSBY_WP_URL
value fromtemplate
to WordPress URL of the backend. You can use staging urlhttps://divritenis-staging.dexie.me
- Run
npm install
Now you can run npm start
as usual to run Gatsby dev server. Gatsby will automatically fetch WordPress data, build GraphQL typings for TypeScript and will run type-checks as you write code.
This website is developed on a non-profit basis with a main goal of popularizing cycling in Latvia. People who contribute to this project: