Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2kabhishek/codepilot-out-in-tdd
OpenAI autocompletion with Outside In TDD 🤖✨
https://github.com/2kabhishek/codepilot-out-in-tdd
learning mocking openai openai-api outside-in-tdd ruby ruby-on-rails tdd
Last synced: 29 days ago
JSON representation
OpenAI autocompletion with Outside In TDD 🤖✨
- Host: GitHub
- URL: https://github.com/2kabhishek/codepilot-out-in-tdd
- Owner: 2KAbhishek
- License: gpl-3.0
- Created: 2023-03-22T15:19:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T04:21:30.000Z (about 1 month ago)
- Last Synced: 2025-01-03T05:26:09.779Z (about 1 month ago)
- Topics: learning, mocking, openai, openai-api, outside-in-tdd, ruby, ruby-on-rails, tdd
- Language: Ruby
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fetch completions from OpenAI using rails, implemented using Outside In TDD
## ✨ Features
- Fetches completions from OpenAI API
- Implemented following Outside In TDD and Layered Architecture
- Contains CI pipeline with lint and test## Setup
### ⚡ Requirements
- ruby 3.0.4
### 🚀 Installation
```bash
git clone https://github.com/2kabhishek/codepilot-out-in-tdd
cd codepilot-out-in-tdd
bundle install
rspec # run tests
rails s # run server
```### 💻 Usage
You can go to the server url and navigate to `/completions/ask` path with query as a query param
For example: `http://localhost:3000/completions/ask?query=how to write hello world in ruby`
## Behind The Code
### 🌈 Inspiration
- Learning Outside In TDD with https://github.com/sapanparikh18
### 💡 Challenges/Learnings
- The main challenges were mocking and creating the architecture in rails
- Lack of documentation around the subject for rails### 🧰 Tooling
- [Dotfiles](https://github.com/2kabhishek/Dotfiles) — Dev Environment
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor
- [awesome2k](https://github.com/2kabhishek/awesome2k) — Tiling Window Manager
⭐ hit the star button if you found this useful ⭐
Source
| Blog
| More Links
| Other Projects