Skip to content

huwr/website

 
 

Repository files navigation

MelbourneCocoaHeads Website

Visit the website at: https://www.melbournecocoaheads.com.

Month-to-month updates (June 2019)

The github repository at https://github.com/melbournecocoa/website is setup to automatically deploy Heroku on merges to the master branch.

  • Each month, edit posts.yml with a new post
    • Update the front page ordering.
    • Link to the relevant events from events.yml for this month. Use the slug value.
  • Create a PR [similar to this one][melbournecocoa#14] with the changes and ask someone in the community to check the details
  • Merge the PR, this will deploy the code

From here someone with access to the heroku instance needs to run the migration:

heroku run -a melbourne-cocoaheads php artisan cocoa:update

Deploying to Heroku manually

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.

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

Running Locally

cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate
php artisan cocoa:update
php artisan serve

Writing Posts

You can write posts by creating new entries in posts.yml.

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

See https://localhost:8080/api or https://www.melbournecocoaheads.com/api

Feed

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

iCal Feed

https://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: https://ogp.me

Graphics

Favicon.ico

Sitemap

JS

About

Cocoaheads Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 57.0%
  • HTML 25.8%
  • JavaScript 17.2%