Skip to content

Tufailahmed-Bargir/legacy-code-converter

Repository files navigation

Lego : legacy code converter

An interactive web portal to convert the legacy code (outdated code ) into modern code

Screenshot 2024-09-02 223534

The interface to input the legacy code langauge, legacy code and modern code language

Screenshot 2024-09-01 161347

Successfully converted code with documenation

image

Tech Stack Used

  • Front End - Nextjs, tailwindCSS
  • Back End - Nextjs,
  • LLM Model- Gemini 1.5 flash

How to run?

Manual setup

  1. Fork this repo and make a clone of it and go to the cd lego directory
    cd lego
    
  2. make pnpm install
  3. pnpm install
    
  4. Create a .env file and paste your Gemini api key in .env file in GEMINI_API_KEY='AIxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  5. Run/ Start localhost by (pnpm run dev)
pnpm run dev
  1. then visit to localhost:3000 in your browser.

Docker setup

  1. Build the image using Docker build -t (image-name) :(tag).

Example

Docker build -t lego:v1
  1. and run the image using Docker run -p 3000:3000

    Example

Docker run -p 3000:3000 lego:v1

Want to Contribute?

contributions are always welcomed.

Need help?

if (needHelp === true) {
  var emailId = "[email protected]";
  // email is the best way to reach out to me.
  sendEmail(emailId);
}

Releases

No releases published

Packages

No packages published

Languages