{"id":13617652,"url":"https://github.com/salimhamed/dashboard","last_synced_at":"2026-02-07T14:11:32.856Z","repository":{"id":30642703,"uuid":"34198261","full_name":"salimhamed/dashboard","owner":"salimhamed","description":"A simple dashboarding web application built using Flask and Bootstrap.","archived":false,"fork":false,"pushed_at":"2023-02-02T01:38:49.000Z","size":2425,"stargazers_count":65,"open_issues_count":9,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-01T20:48:21.461Z","etag":null,"topics":["bootstrap","dashboard","dashboard-application","elasticbeanstalk","flask","postgresql-database","python"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/salimhamed.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}},"created_at":"2015-04-19T08:01:55.000Z","updated_at":"2024-04-17T00:50:46.000Z","dependencies_parsed_at":"2023-02-19T16:46:06.723Z","dependency_job_id":null,"html_url":"https://github.com/salimhamed/dashboard","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/salimhamed%2Fdashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimhamed%2Fdashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimhamed%2Fdashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimhamed%2Fdashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salimhamed","download_url":"https://codeload.github.com/salimhamed/dashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223621938,"owners_count":17174789,"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":["bootstrap","dashboard","dashboard-application","elasticbeanstalk","flask","postgresql-database","python"],"created_at":"2024-08-01T20:01:45.438Z","updated_at":"2026-02-07T14:11:32.812Z","avatar_url":"https://github.com/salimhamed.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Overview\n\nThis is a simple dashboarding application built using Flask and Bootstrap.  The application has been tested with Python 2.7. It's ready to deploy with [AWS Elastic Beanstalk](http://aws.amazon.com/elasticbeanstalk/).\n\n# Installation\n\n1. Clone the repository\n\n  ```\n  git clone https://github.com/salimhamed/dashboard.git\n  ```\n\n2. Create a virtualenv in the project directory\n\n  ```\n  cd dashboard\n  virtualenv venv\n  source venv/bin/activate\n  ```\n\n3. Install dependencies\n\n  ```\n  pip install -r requirements.txt\n  ```\n\n4. Create database\n\n  ```\n  ./manage db_rebuild\n  ```\n\n5. Run tests\n\n  ```\n  ./manage.py test\n  ```\n\n6. Start development server\n\n  ```\n  ./manage.py runserver\n  ```\n\n# Database Operations\n\n**PostgreSQL Database Operations**\n\n1. `pg_ctl` is a utility to initialize, start, stop, or control a PostgreSQL server.\n  * `pg_ctl status -D DATADIR` shows the status of a PostgreSQL database.\n  * `pg_ctl start -D DATADIR` starts the PostgreSQL server\n  * `pg_ctl stop -D DATADIR` stops the PostgreSQL server.\n  * `pg_ctl stop -D DATADIR -m fast` immediately stops the PostgreSQL server rather than waiting for session-initiated disconnection.\n2. `postgres` is the PostgreSQL server.\n  * `postgres -D DATADIR` starts the PostgreSQL server.\n3. `psql` is the PostgreSQL interactive terminal.\n  * `psql -d DATABASE` connects to a given database.\n  * `psql -l` lists all available databases.\n\n**Destroy and Rebuild Database**\n\n1. The positional argument 'db_rebuild' will delete any existing sqlite database and create a new devlopment database populated with fake data.\n\n  ```\n  ./manage db_rebuild\n  ```\n\n**Database Migrations**\n\n1. Create an automatic migration upgrade script\n\n  ```\n  ./manage db migrate -m \"\u003cmigration message\u003e\"\n  ```\n\n2. Apply the migration upgrade script (note, upgrade script should be reviewed before applying changes)\n\n  ```\n  ./manage db upgrade\n  ```\n\n# Resources\n\n* [Flask Documentation](http://flask.pocoo.org/)\n* [Bootstrap Documentation](http://getbootstrap.com/)\n* [SB Admin 2 Bootstrap Template](http://startbootstrap.com/template-overviews/sb-admin-2/)\n* [Miguel Grinberg Flask Web Development Book](http://www.flaskbook.com/)\n* [Miguel Grinberg Flask Web Development GitHub](https://github.com/miguelgrinberg/flasky)\n\n# Flask Extensions\n* [Flask Bootstrap](http://pythonhosted.org/Flask-Bootstrap/)\n* [Flask Mail](https://pythonhosted.org/Flask-Mail/)\n* [Flask Moment](https://github.com/miguelgrinberg/flask-moment/)\n* [Flask SQLAlchemy](https://pythonhosted.org/Flask-SQLAlchemy/)\n* [Flask Migrate](https://flask-migrate.readthedocs.org/en/latest/)\n* [Flask Login](https://flask-login.readthedocs.org/en/latest/)\n* [Flask Script](http://flask-script.readthedocs.org/en/latest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimhamed%2Fdashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalimhamed%2Fdashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimhamed%2Fdashboard/lists"}