Coder Social home page Coder Social logo

fibonacci-calculator's Introduction

Fibonacci Calculator

Updated: August 1st 2023

Live Application

The project is hosted live on Heroku at https://fibonacci-calculator-2531b1231971.herokuapp.com/

Introduction

Simple Fibonacci Calculator done for the Chan-Zuckerberg Biohub challenge

Instruction

If downloading on local machine

  1. Go to the folder in fibonacci-calculator
  2. Open a bash console and create a virtual environment python3 -m venv venv
  3. Activate the environment using source venv/bin/activate, you should now see (venv) or (main)
  4. Install all dependencies pip install -r requirements.txt

Your directory should look like this

.fibonacci-calculator-app/
├── static/
├── templates/
├── venv/
|
├── .gitignore
├── app.py
├── fibonacci.db
├── README
└── requirements.txt

Database setup

We will be using SQlite3 which is a very light weight relational database to store our results

  1. Open a new bash console, run the command sqlite3 fibonacci.db, you will enter the database shell
  2. To clear the tables, run the command DROP TABLE fibonacci;.

You are now ready to run the application

  1. Inside the console with virtual environment, run python app.py and open localhost:5000 on your browser.
  2. Enter a number, click generate and it will redirect you to the results page.

If you enter the same number again, it will calculate much faster since the results are already stored in the database!

fibonacci-calculator's People

Contributors

mountainbikeryyc avatar

Watchers

 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.