Skip to content

2KAbhishek/codepilot-out-in-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License People Stars Forks Watches Last Updated

OpenAI autocompletion with Outside In TDD πŸ€–βœ¨

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

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

πŸ’‘ Challenges/Learnings

  • The main challenges were mocking and creating the architecture in rails
  • Lack of documentation around the subject for rails

🧰 Tooling


⭐ hit the star button if you found this useful ⭐

Source | Blog | Twitter | LinkedIn | More Links | Other Projects