Dumppi-Website
View on GitHubTechnologies:
- JavaScript
- React
- Gatsby
The official website of Dumppi Ry. This site is the main place to find information about Dumppi Ry and it also has important information for members like events and benefits.
How it works?
Site is build with React and we use Gatsby for static site generation. Site is build using Github actions and deployed to Netlify from the action after successful build. During the build Gatsby fetches the content from our Sanity Studio.
Sanity
We use Sanity CMS for managing content. You can find our Sanity Studio documentation here and repository from Github. You only need to develop the studio if you wish to do changes to datastructures of our content and other stuff like that. For front end changes there is usually no need for changes to Studio.
Data structures
There is too many different Schemas to list here. If you need to see what kind of data is retrieved from Sanity, you can see the Schemas directory under the Studio project. Also check out the Sanitys documentation.
Publish pipeline
When changes are wanted to the content, the content needs to be updated in the Sanity Studio. After the content is ready, it needs to be published by clicking the Publish button in the bottom right corner of the Studio. Note that this will not make changes visible to the website alone. This only makes the data available. Next we need to rebuild the site and the build can be triggered with the Deploy button in the Dashboard. After clicking the Deploy button, the build-and-deploy action will run in Github. This will take anywhere from 2 to 7 minutes to finish and after it has successfully finished, the changes will be visible in the website.
The build-and-deploy action will be triggered for every push against
main
branch in our Github or via the Deploy button in our Sanity Studio.
Development
For instructions how to get started with development, see the README of the repository.
Deployment
The website is hosted in Netlify and there is automatic deployment pipeline set up. If something is broken or manual deployment is needed, please contact the current webmaster.