{"id":16651554,"url":"https://github.com/hellrungj/alternate-format-text-database","last_synced_at":"2026-05-20T05:05:48.929Z","repository":{"id":124271458,"uuid":"65240139","full_name":"Hellrungj/Alternate-Format-Text-Database","owner":"Hellrungj","description":"Alternate Format Text Database ","archived":false,"fork":false,"pushed_at":"2018-10-10T08:44:19.000Z","size":11104,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T08:42:52.507Z","etag":null,"topics":["flask-admin","flask-peewee","flask-security","flask-web","python","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hellrungj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-08T21:18:57.000Z","updated_at":"2024-05-12T05:47:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"a132d817-85e4-434f-ba75-f418c1088e24","html_url":"https://github.com/Hellrungj/Alternate-Format-Text-Database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellrungj%2FAlternate-Format-Text-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellrungj%2FAlternate-Format-Text-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellrungj%2FAlternate-Format-Text-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellrungj%2FAlternate-Format-Text-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hellrungj","download_url":"https://codeload.github.com/Hellrungj/Alternate-Format-Text-Database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243241605,"owners_count":20259620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask-admin","flask-peewee","flask-security","flask-web","python","sqlite"],"created_at":"2024-10-12T09:25:39.942Z","updated_at":"2026-05-20T05:05:48.897Z","avatar_url":"https://github.com/Hellrungj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alternate Format Text Database\nAlternate Format Text Database is PeeWee Flask Web Application that combines Flask-Security and Flask-Admin  \nby John Hellrung\nAugust 8, 2016\n\nThanks you to Flask, PeeWee, Flask-Security, and Flask-Admin to providing a convenient way to made a Flask web app.\nFlask provides a quick and easy web application\nPeeWee provides a quick and easy databae API\nFlask-Admin provides CRUD operations on database tables. \nFlask-Security handles the authentication and authorization of the Flask web app.\nFlask-Security and Flask-Admin both allow authoriztion of users and maintainace of the database. \nFlask-Admin provides a convenient way to add a  around the current Flask web app.  \n\nHere are some helpful links:\n- Flask: http://flask.pocoo.org/\n- PeeWee: http://docs.peewee-orm.com/en/latest/\n- Flask-PeeWee: http://docs.peewee-orm.com/projects/flask-peewee/en/latest/\n- Flask-Admin: https://flask-admin.readthedocs.org/en/latest/\n- Flask-Security: https://pythonhosted.org/Flask-Security/\n- SQLite database: https://sqlite.org/\n- The Jinja Documentation: http://jinja.pocoo.org/docs/dev/\n- The Configure Documentation: http://configure.readthedocs.io/en/latest/#\n\nTo run this app, you'll need to run:\n- setup.sh  \n- create_db.py\n- app.py\n\nYou will need to install:\n-  Python 2.7\n\nThe Setup.sh file will install:\n- Flask\n- Peewee\n- pyyaml\n- Flask-PeeWee\n- Flask-Admin\n- Flask-Security\n\nThe create_db.py file will:\n- Create the database file in the folder data\n- Name the file DAS.db\n- Create the tables in the database\n\nIf there is an Flask import errors try running the command . venv/bin/activate and then run the app.py again.  \n\nI personally ran this code on Cloud 9 with a PeeWee database, but you should be able to use any operating system and database system of your choice as along as it compatable with Flask.\n\nOnce you have the app running, you can view it in your browser (e.g. http://localhost:8080).\nIf you are in Cloud 9 and having trouble checkout this article: http://damyanon.net/getting-started-with-flask-on-cloud9/ \n\nNotes (Please Read):\n- When you first visit the app's home page, you'll be prompted to log in, thanks to\nFlask-Security.\n- If you log in with username=DASStudent@berea.edu and password=password, you'll have the\n\"Student\" role.\n- If you log in with username=DASLaborStudent@berea.edu and password=password, you'll have the\n\"Lobor Student\" role.\n- If you log in with username=DASadmin@berea.edu and password=password, you'll have the \"admin\"\nrole.\n- Either LaborStudent or Student role are permitted to access any of the admin views.\n- Either Student is permitted to access other than index page. \n- Only the admin role is permitted to access to the whole database. Otherwise, you'll get a \"forbidden\" respone.\n- Note that, when editing a user, role, or userroles the names of roles and users are automatically populated thanks to\nFlask-Admin.\n- You can add and edit users, roles and assign user a role. The resulting users will be able to log in (unless you\nset active=false) and, if they have the \"admin\" role, will be able to perform administration.\n- For future update about about DAS-Alt. Format Text Database checkout my blog: https://hellrungj.wordpress.com/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellrungj%2Falternate-format-text-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellrungj%2Falternate-format-text-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellrungj%2Falternate-format-text-database/lists"}