Swiftpack.co - Package - dokun1/slackin-swift

Powered by IBM Cloud Pods Version Carthage Compatible Standard README Compliant MIT License


Create a landing page invited for a Slack instance you want people to join.

Heavily inspired, obviously, by slackin.

Want to see it working live? Go here, which is an inviter to my Weekly Peer Lab in Austin, Texas.

Requirements

  • Swift 4.1
  • macOS 10.13 / Ubuntu 14.04
  • Xcode 9.3
  • a Slack legacy token - get one for your org here.
  • Cloud Foundry container on IBM Cloud with at least 128MB of application memory

Contribute

See the contribute file!

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

Building the Project

  1. Clone this repo.
  2. From the root directory, run swift build.
  3. From the root directory, run swift package generate-xcodeproj.

Running in Xcode

  1. Create a file in your ~/Documents directory called slackkey.txt.
  2. For the slack you want to run this with, make the only contents of that file the legacy slack token you are working with.
  3. Save the file.

When you run this in Xcode, if you don't provide a token as a command line argument, it will search for this file and read it, and use that. You can debug on main.swift to see what it's doing.

If you run this from the command line, you'll want to run:

.build/debug/slackin-swift **insert token here**

Running in Docker

There is a run script provided with the repository titled runDocker that utilizes a local Dockerfile for running the app, and Dockerfile-tools for building the app. The script takes one parameter, so execute the script like so:

./runDocker **insert token here**

Note that, in the script, the names of the images created can be modified, but everything is consistently named for the sake of simplicity.

License

MIT © 2018 David Okun

Github

link
Stars: 30
Help us keep the lights on

Used By

Total: 0

Releases

0.3.1 - Jun 9, 2018

  • performance improvements via caching

0.2 - Apr 22, 2018

  • improved UI

0.1 - Apr 20, 2018