Giter Site home page Giter Site logo

configconsult's Introduction

ConfigConsult.com

ConfigConsult.com is a Flask-based web application that makes it easy to debug and view Cisco IOS config files.

Best part is that its entirely client side! So your config stays only with you and your device.

Setup

There are two ways to run ConfigConsult.com:

Running Locally

  1. Ensure you have Python and Flask installed on your machine. If Flask is not installed, you can install it using pip:

    pip install flask
  2. Clone the repository:

    git clone https://github.com/adamspera/configconsult.git
  3. Navigate to the cloned repository:

    cd configconsult
  4. Run the Flask application:

    python app.py
  5. Open your web browser and navigate to http://localhost:5000.

Running on a VM

  1. Follow steps 1-3 from the "Running Locally" section.

  2. Update the Flask app to run on your VM's public IP address. Modify the last line of app.py to:

    app.run(host='0.0.0.0', debug=True)
  3. Run the Flask application:

    python app.py
  4. Open your web browser and navigate to http://<your-vm-ip>:5000.

Please replace <your-vm-ip> with your VM's public IP address.

File Structure and Cloudflare Pages Hosting

Our application has a slightly unusual file structure due to the way we host it on Cloudflare Pages. Here's a brief explanation:

  • root/index.html: This is the entry point of our application when hosted on Cloudflare Pages. It uses AJAX to fetch the content of root/templates/index.html and replace its own content with it. This allows us to host the application on Cloudflare Pages in the same repository without changing the file structure.

  • root/templates/index.html: This is the main HTML file of our application. It's fetched by root/index.html using AJAX when the application is hosted on Cloudflare Pages.

Please note that when running the application locally or on a VM, Flask serves root/templates/index.html directly, and root/index.html is not used.

Next steps:

  1. Run the application locally or on a VM following the instructions in the Setup section.
  2. Test the application on Cloudflare Pages by navigating to your Cloudflare Pages URL.

Contributing

We welcome contributions! Please reach out to Adam Spera on LinkedIn for more details!

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

configconsult's People

Contributors

adamspera avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.