syncfbevents

command module
v0.0.0-...-24e90e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2015 License: AGPL-3.0, Apache-2.0 Imports: 25 Imported by: 0

README

Sync FB Events

Notes on iCal format.

Note: clean this up

BEGIN:VEVENT
ORGANIZER;CN=<Owner>:MAILTO:noreply@facebookmail.com
DTSTART - either yyyymmdd or yyyymmddThhmmssZ converted to UTC
DTEND - same as DTSTART if it doesn't exist.
UID - must be there, must be unique, should add '@domain.com' to the end.
SUMMARY - name
LOCATION - location name
URL - https://www.facebook.com/events/:event_id/
DESCRIPTION - description (how is it formatted?)
CLASS:PUBLIC
STATUS:CONFIRMED
PARTSTAT:ACCEPTED
END:VEVENT

Setup

$ sudo pacman -S postgres # Set up database.
$ sudo -i -u postgres initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'
$ sudo systemctl start postgresql
$ sudo systemctl enable postgresql
$ sudo -i -u postgres createuser --interactive <your-system-username>
$ createdb syncfbevents
$ sudo pacman -S docker # Install docker.
$ sudo gpasswd -a <USER> docker && echo "Login and then logout."

Run

Serve
$ make server      # Serve site.
$ make watch-serve # Serve site, restarting when any files in the
                   # project directory change (requires inotifywait).
Auxiliary
$ make db-reset # Wipe the database.
$ make test     # Run tests.
Docker
$ make docker-deps  # Pull, configure, and run the docker
                    # container dependencies (only run once).
$ make docker-build # Build the docker container for the app.
$ make docker-run   # Run the docker container as a daemon.
$ make docker       # Calls docker-build and docker-run.
Deploy
$ make deploy-deps TO=<SSH-NAME> # Pull docker deps on SSH-NAME (only run once).
$ make deploy TO=<SSH-NAME>      # Push code to server and run docker.

LICENSE

The license for this project is AGPLv3.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL