Cocoaheads Website
PHP HTML JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
.gitignore
API-Definition.paw
Procfile
artisan
composer.json
composer.lock
events.yml
gulpfile.js
package.json
phpunit.xml
posts.yml
readme.md
server.php

readme.md

MelbourneCocoaHeads Website

Deploying to Heroku

git push heroku master && heroku run php artisan migrate && heroku run php artisan cocoa:update

More simply (no migration)

git push heroku master && heroku run php artisan cocoa:update

Starting from scratch. This will clean out the DB, add everything again.

got push heroku master && heroku run php artisan migrate:refresh && heroku run php artisan cocoa:update --bootstrap

Running this locally

  • homebrew
  • homebrew php
  • php71
php artisan key:generate
touch database/database.sqlite
php artisan migrate
php artisan cocoa:events
php artisan cocoa:posts
php artisan serve

Writing Posts

You can write posts by creating new entries in posts.yml. These are ingested automatically on deployment.

Events

Update events.yml with new events in the same format as what's there and you can add more events.

There is a command cocoa:events-2017 that populates the events.yml with a base set of 2017 events. This will replace the existing file.

API

Return a JSON file with the next 'event'.

Return a list of 2016 events with title, sponsor, speakers, location, event bright link

Return a list of sponsors

Return a list of contact details

Feed

https://github.com/RoumenDamianoff/laravel-feed

iCal Feed

http://stevethomas.com.au/php/how-to-build-an-ical-calendar-with-php-and-mysql.html

https://github.com/ahmad/ics.generator

Headers (From Existing):

Content-Type: text/calendar; charset=UTF-8
Cache-Control: no-cache, no-store, max-age=0, must-revalidate

Existing Calendar:

https://calendar.google.com/calendar/ical/rrb183sckdpi5pi4hrk5u36dbc%40group.calendar.google.com/public/basic.ics

curl -i https://calendar.google.com/calendar/ical/rrb183sckdpi5pi4hrk5u36dbc%40group.calendar.google.com/public/basic.ics

Open Graph

https://github.com/artesaos/seotools

Twitter cards: https://dev.twitter.com/cards/getting-started

Open graph: http://ogp.me

Graphics

Favicon.ico

Sitemap

JS