Skip to content

nasOps/MonkKnows

Repository files navigation

MonkKnows

Sinatra Ruby

Ruby CI (Build & Test) Ruby Contributors Open Issues Last Commit

Flask Python (Legacy)

Python Flask

A search engine originally built in 2009, currently being migrated from Flask (Python) to Sinatra (Ruby) as part of a DevOps project.


Repository Structure

MonkKnows/
├── .github/
│   ├── ISSUE_TEMPLATE/
│   └── workflows/
│       └── ci.yaml
├── docs/
│   ├── branching-strategi/
│   ├── choices-and-challenges/
│   └── openapi/
├── legacy-flask/           # Python legacy application
├── ruby-sinatra/           # Active Ruby/Sinatra application
└── .gitignore

Migration Strategy

Flask and Sinatra run side by side during migration. Functionality is moved route by route – read-only endpoints first, authentication and write logic later. Both versions share the same SQLite database in the interim.


Setup

Ruby / Sinatra

cd ruby-sinatra
bundle config set --local path vendor/bundle
bundle install
bundle exec ruby app.rb

App runs on http://localhost:4567

Python / Flask (Legacy)

cd python-legacy
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py

App runs on http://localhost:5000

About

A Legacy code project rewritten from Python to Ruby for a DevOps class

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors