Skip to content

bartwr/tpy-site

Repository files navigation

tpy-site

The website of Technology Park Ypenburg.

Project overview

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.

Contributing

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.

Getting started

1. First time use

git clone [email protected]:bartwr/tpy-site.git
cd tpy-site
npm install

2. Running the app

  1. 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'
  1. 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.

3. gitmoji for git commits

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.

4. Deploying the app

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

Contributors

  • 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)

NOTES on Design

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published