Skip to content

rilem/q42.nl

 
 

Repository files navigation

Q42.nl runs on Meteor!

We've published the source code to q42.nl and q42.com here for your perusal.

If you find anything on our site that you feel needs fixing, be it code, spelling or anything else, don't hesitate to send us a pull request or create an issue. We maintain the site ourselves with the same workflow.

Getting the damn thing to run

Sounds like it'll be a royal pain in the butt ey? Guess again amigo.

Fork and checkout this project

The hard bit since the repo is around ~220MB

git clone https://github.com/[YOURUSERNAME]/q42.nl.git

Install Meteor

On Mac or Linux, run this:

curl https://install.meteor.com | /bin/sh

On Windows, just go to http://meteor.com/install and download the Windows installer!

Configure your editor

Make sure your editor has support for .editorconfig, and .jshintrc.

Add settings you need

Create a config/settings.json file containing the correct Tumblr and Kadira account information:

  {
    "TUMBLR_KEY": "myTumblrKey",
		"kadira": {
			"appId": "myKadiraAppId",
			"appSecret": "myKadiraAppSecret"
		}
  }

The Tumblr key is required for the blog to not explode (even though you won't actually be able to see any posts without our real API key). If you misconfigure Kadira, you'll just get console errors.

cd into checkout and run meteor

cd q42.nl
meteor --settings config/settings.json

Optional stuff to set up

Slack chat integration

In order to get this working you need to call a Meteor method named setupChatConfig and pass it your incoming and outgoing webhook tokens from Slack. Or you can not do this, and then nothing will change except that the chat won't work.

Deploying

First you need the following prerequisites:

Then, add the two Scalingo Git Remotes:

git remote add scalingo-nl [email protected]:q42nlsite.git
git remote add scalingo-en [email protected]:q42comsite.git

Since you need to deploy to two separate sites (q42.nl and q42.com), there's a script which will take care of both commands. Just run:

./deploy.sh

Contributing

Content for the site is located in the /views folder as regular .html files, so if you want to edit some content, just navigate to that file and edit it! A really fast way to clean up spelling mistakes and similar small problems is to just load the repository on Github and use its built-in editor to edit files. Github will automatically fork the project for you and submit a pull request. Yay!

Credits

We use the reblog icon by Yo Szczepanska from the Noun Project: http://thenounproject.com/term/reblog/7116/ (CC BY 3.0).

License?

There is no license. This is the code for our website, copyright Q42. You can browse the source and learn from our mishaps, but please don't re-use the code elsewhere or redistribute it.

Bitdeli Badge

Packages

No packages published

Languages

  • HTML 63.3%
  • JavaScript 29.6%
  • CSS 6.9%
  • Shell 0.2%