-
If you don’t have Node.js installed, install it from here
-
Install the requirements
$ npm install
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your API key to the newly created
.envfile
| ENV Name | Default |
|---|---|
| OPENAI_API_KEY | "" |
| SLACK_SIGNING_SECRET | "" |
| SLACK_BOT_TOKEN | "" |
| PORT | 3000 |
-
Run the app
$ npm start
You should now be able to access the app at http://localhost:3000!
-
Register an app with API key in OpenAPI (easy)
-
Pick an example or couples ( input: code snippet, output: whatever showed in examples)
a. Explain Code https://beta.openai.com/examples/default-explain-code
b. Calculate Complexity https://beta.openai.com/examples/default-time-complexity
c. Translate programming language https://beta.openai.com/examples/default-translate-code
-
Create a Slack bot (with the provided library)
-
Connect it!
- Build buttons in the Slack bot that allow user to choose integration type
- Support more integration types
- Create a Local dev environment
- Deploy it to the local app
- Demo it!