GithubHelp home page GithubHelp logo

lawsforme's Introduction

LawsForMe is organized in a very simple and advanced way.

The main file, app.py should be run to start the webserver. All other python files can be found inside of the business_logic folder.

The business_logic folder contains folders such as "account" and "sql". 

The account folder houses files that have to do with verifying a users credentialls and generally just messing with their account information.

The sql folder contains files that have to do with sql. The sql_adapter.py file contains methods that interact with the database itself. All queries (except for those used to create the database) can be found inside this file. The db_creation.py file houses the database spec. Only attempt to source the db_creation file if you wish to create a local versiion of the database.

In order to start the program you will need to install the dependencies. Simply run the program and look at what errors it gives, when it tells you "x" module cannot be found simply do pip3 install x. You may also be able to do pip3 install setup.py however this is not guarenteed to install all of the dependencies. 

The doc directory has all files having to do with the phase submission papers and diagrams and stuff like that.

The crawler directory contains the crawler used to parse wikipedia, please disregard it.

The templates folder contains html templates that are used for the web application.

The static folder contains css files, javascript files and images.


Remember: To run the program simply do, python3 app.py



Notes:

Flask is the framework that has been used

WHEN CREATING AN ACCOUNT:
    - interests should be comma seperated

    - The algorithm to determine what laws affect what interests is fairly basic at the moment so there may be many keywords that don't give any interests. Some examples of interests that will definitely yield results are: internet, fishing, nature, hacking, dogs, and animals
    
    - NOTE: it takes a long time for the program to establish new interests that relate to laws so once you get to the home page you may need to wait and refresh a few times to see all the laws that correspond with your interests! The more interests you enter the longer it will take.
    
    - If you do not enter a firstname or lastname, the word "none" will be displayed in a forum comment, should you make one
    
    - Only username, password and interests are required to create an account!

In the forums section you can sort discussions in various ways


lawsforme's People

Contributors

slandau3 avatar slandau4 avatar talhaazhar avatar

Watchers

 avatar  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.