The website of Technology Park Ypenburg.
The website is mostly written in JavaScript.
For frontend development we use NextJS, a React framework with native support for Server Side Rendering (SSR).
For backend development we use a simple express server.
Do you have ideas or feedback? Or do you want to contribute to the design, content or code? You are very welcome to contribute!
Examples of contributions you could think of:
- Bug reports
- UI enhancements
- General feedback
- Textual updates
- Improving this README
An easy way to start contributing is by creating a so called 'issue' with your feature request, idea or bug report. Start here.
git clone [email protected]:bartwr/tpy-site.git
cd tpy-site
npm install
- In
.env
, set Contentful API configuration. It should look something like this:
CONTENTFUL_SPACE_ID=YOURID
CONTENTFUL_ACCESS_TOKEN=YOURTOKEN
SENDGRID_API_KEY='SENDGRIDAPIKEY'
MAILCHIMP_ID='XXXX-us15'
- Start the app
With server
npm run dev
UI only (has hot reload)
npm run dev-without-server
Now open your favorite browser and go to http://localhost:3000
Need help? Create an issue.
Want to make use of gitmoji?
Using emojis on commit messages provides an easy way of identifying the purpose or intention of a commit with only looking at the emojis used.
Do the following:
npm i -g gitmoji-cli
gitmoji -i
From now, always git commit from your CLI. In example:
git add .
git commit
Hooray! Emoji intentions in front of your commit message.
Inspired by OpenBook.
Heroku?
- In settings tab, set config vars:
- CONTENTFUL_ACCESS_TOKEN
- CONTENTFUL_SPACE_ID
- SENDGRID_API_KEY
Netlify?
- Build command:
npm run deploy
- Publish directory:
out
Running production on Windows?
SET CONTENTFUL_ACCESS_TOKEN=token
SET CONTENTFUL_SPACE_ID=id
SET SENDGRID_API_KEY=apikey
SET NODE_ENV=production
node api/server.js
Running production on Linux?
export CONTENTFUL_SPACE_ID=THE_SPACE_ID
export CONTENTFUL_ACCESS_TOKEN=THE_ACCESS_TOKEN
export PORT=3000
export SENDGRID_API_KEY='SG.THE_SENDGRID_API_KEY'
export MAILCHIMP_ID='THE_MAILCHIMP_ID-us15'
export SENDGRID_API_KEY=apikey
export NODE_ENV=production
node api/server.js
- bartwr (Code)
- Hans Pols (Graphic Design)
- Olga (project management)
- Sophie (project management)
- Stephen (project management)
- Bonneke Weber, Airborne (domeinbeheer)
- Nathalie en Sophie (Sophie writes, Nathalie posts using Contentful)