We use Gatsby.js to build our Site
- Clone the Repo
- Install the Gatsby CLI
npm install -g gatsby-cli
- Run
npm install
- Create a
.env.development
file - Get the contentful access token from passbolt and add a line to the
.env.development
file, replacing the XXX with the contentful token:CONTENTFUL_ACCESS_TOKEN=XXX
- Run
gatsby develop
to start the project locally
Staging branch automatically deploys to the staging environment and the production branch automatically to the production environment.
We use Contentful as a CMS (Content Management System). There you can edit the location page of your TechLabs Community and add the BlogPosts.
Currentliy the only pages that are generated are /location. In the templates folder you could find the template for the pages, which are generated from the gatsby-node file.
Any change in the content of the location pages has to be done through contentful.
Please make sure to add static text both in german and english. Therefore you have to add a formattedMessage with the key to the json in intl/de.json and intl/en.json.
Example:
<FormattedMessage id="about.about.program_hero.headingSecond" />
- React as a Frontend Framework (DOCS)
- Gatsby as static site generator (DOCS)
- Data Source Contentful
- Staging-Environment: Staging
- Production: techlabs.org
You found something that has to be different? Something is broken? Please report it here: Report issue
If you want to work on the website please consider to become a part of the techlabs organisation. Currently only TechLabs-Members could support this project. Either message Richard or get in contact with our HR department.
Please feel free to write a message to Richard