Coder Social home page Coder Social logo

book-catalog's Introduction

Book Catalog -- version 1.0

A multi-page app using Python's Flask framework. The app allows users to write, read and update their favorite books to a DB.

Running the App--

Dependencies -

  • Vagrant
  • VirtualBox
  • Python
  • Flask
  • Jinja2
  • SQLalchemy
  • jQuery
  • Font-Awesome

If you don't have have Python on your machine, you'll need to install Python and the necessary python libraries.

Download and Install Python: https://www.python.org/downloads/

A virtual machine is needed to run the app locally. If you don't have vagrant and VirtualBox installed on your machine, please install them and set up your virtual machine using the .vagrant file in the directory.

For help installing vagrant, visit the following link: https://www.vagrantup.com/docs/getting-started/project_setup.html

This app is set to run on localhost:5000, if you wish to change this, please reconfigure the vagrant file to include the port you wish to operate from.

  config.vm.network "forwarded_port", guest: 8000, host: 8000
  config.vm.network "forwarded_port", guest: 8080, host: 8080
  config.vm.network "forwarded_port", guest: 5000, host: 5000

If you make changes to the .vagrant file, run vagrant reload for changes to take effect You also must reconfigure the portion of application.py file shown below.

if __name__ == '__main__':
    app.debug = True
    app.secret_key = "super_secret_key"
    app.run(host='0.0.0.0', port=5000)

After all required software has been installed, open a terminal and navigate to the project directory /catalog. In your terminal, type the following commands:

  • vagrant up
  • vagrant ssh

You should now be logged into the virtual machince. Navigate to /vagrant/catalog to access the application files and then type python application.py to run the app. After typing this command, your machine should be hostingthe app on localhost:5000 (or whatever port you've set up). Open your favorite browser and navigate to your local port to view the app.

book-catalog's People

Contributors

carrn7k avatar

Watchers

James Cloos 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.