Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.48 KB

README.md

File metadata and controls

65 lines (52 loc) · 1.48 KB

Overview

Starred Search is a tool to search the readme files in GitHub users' starred repositories. It lives at starredsearch.com.

The app is written in Swift using the Vapor web framework.

Prerequisites

Debug Environment

Create the file debug.json in your checkout directory:

{
  "GITHUB_CLIENT_ID": "<your app client>",
  "GITHUB_CLIENT_SECRET": "<your app secret>",
  "APP_ADMIN_PASSWORD": "<your choice>"
}

Release Environment

Define environment variables for GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET and APP_ADMIN_PASSWORD.

Sample launchctl File

Replace ??? as appropriate.

<plist version="1.0">
<dict>
	<key>EnvironmentVariables</key>
	<dict>
    <key>GITHUB_CLIENT_ID</key>
    <string>???</string>
    <key>GITHUB_CLIENT_SECRET</key>
    <string>???</string>
    <key>APP_ADMIN_PASSWORD</key>
    <string>???</string>
	</dict>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>???</string>
	<key>ProgramArguments</key>
	<array>
		<string>???/App</string>
		<string>--workdir=???</string>
		<string>--port=???</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>StandardErrorPath</key>
	<string>???</string>
	<key>StandardOutPath</key>
	<string>???</string>
	<key>WorkingDirectory</key>
	<string>???</string>
</dict>
</plist>