Git Product home page Git Product logo

dinero's Introduction

Dinero app

Setup dev environment

pip install -r requirements.txt

To create the database,

In the main directory run

./initdb.sh

A bit of restructuring has been done, and it might be confusing to look at. I'll do my best to walk you though.

Check requirements.txt

/*

  • Launching (flask) virtual environment */ :dinero: /flask - virtual flask environment. To run:: :dir:dinero $ source flask/bin/activate

you should see: (flask) [some/path]: in your command line.

""" should this fail, remove /dinero/flask then while running python3.5 pip install flask pyvenv flask source flask/bin/activate """ Note: to deactivate, in the window running the venv, command: deactivate

/*

  • Run App */ (flask) [some/path]: python run.py

Note: if this does not work, (flask) [some/path]: pip install flask then run

Note, make sure you have the ::req::/Flask-SQLAlchemy==2.1 installed

/*

  • Structure */

/dinero /app /root /init.py /dinero.py /templates /index.html /init.py /models /Bill.py /Customer.py /Item.py /Resturant.py /config.py /run.py

/*

  • Base Directory */ /dinero = repository /app = control app directory /models = models directory /config.py = environment configuration /run.py = server launch

/*

  • dinero/app */ /root = root of app /init.py = creates root of the app as a Blueprint. Good for scaling. /dinero.py = ultimately, the controller. right now it has a model feel /templates = .html files go here. render_template('somefile.html') looks in :dir:templates for somefile.html. /init.py = holds class create_app()

/*

  • dinero/models */ /Bill.py = Bill model /Customer.py = Customer model /Item.py = Menu item model /Resturant.py = Resturant model

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.