-
Install
swiftenv
. https://github.com/kylef/swiftenv Make sure you have performed both installation steps. -
Clone the repo recursively
git clone -b development --recursive https://github.com/jtomanik/Slacket.git
-
Make sure you have the correct version (
DEVELOPMENT-SNAPSHOT-2016-05-31-a
) of swift installed. If not, in terminal run:
swiftenv install DEVELOPMENT-SNAPSHOT-2016-05-31-a
-
Run
make
command. -
To run the app execute
.build/debug/Slacket
-
After running
make
command, runswift package generate-xcodeproj
-
In project settings, find targets for
Kitura
,KituraNet
,Slacket
and setLibrary Search Paths
for each one of them to:
$(SRCROOT)/.build/debug
You will be able to run the application without slack & pocket token, but for proper execution you will need to add two environment variables with their values. Write a .sh script:
export SLACK_TOKEN=(YOUR TOKEN HERE)
export POCKET_CONSUMER_KEY=(YOUR KEY HERE)
Run it using source
:
source ./slacket_setenv.sh
You will find test scripts in Tests
folder, which will be pretty much everything you can do with Slacket locally :)
make clean
to clean build foldermake refetch
to clean and refetch dependencies- Remove and add
Sources/Slacket
group to properly generate subgroups