Giter Site home page Giter Site logo

camille's Introduction

Camille

Getting Started

Set up the project

  • Clone the project
  • Install pkg-config if you don't already have it installed ( brew install pkg-config )
  • Set up vapor (brew tap vapor/tap & brew install vapor/tap/vapor)
  • Set up libressl (brew install libressl & vapor update)
  • Create the Xcode project with Swift Package Manager (swift package generate-xcodeproj)
  • Create a Slack app. Click "Add features and functionality," and add the "Bots" feature.
  • Set up ngrok for development. Run ngrok http http://0.0.0.0:8080 to expose your local server to the internet.
  • Copy the URL ngrok gives you (it'll be something like http://abc123.ngrok.io).
  • Go back to your Slack app's settings and add the ngrok URL in the Slack app permissions page under "Redirect URIs" with /oauth at the end of it (so, in our example, http://abc123.ngrok.io/oauth)
  • Set up redis. Docker is an easy way to do this. If you have docker installed, run docker run --name redis -p 6379:6379 -d redis
  • Set the project's environment variables. Click the scheme dropdown, and hit "edit scheme."
  • Set the STORAGE_URL environment variable to the redis URL (redis://127.0.0.1:6379 by default)
  • Set CLIENT_ID and CLIENT_SECRET to the IDs that Slack shows on your App page.
  • Set REDIRECT_URI to the redirect URL we set earlier ( http://abc123.ngrok.io/oauth, in our example)
  • Run the project
  • Visit http://0.0.0.0:8080/login and authorize the app.
  • You should be online now!

camille's People

Contributors

allenhumphreys avatar bugkrusha avatar iankeen avatar maxgoedjen avatar mergesort avatar zeveisenberg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.