{"id":19522804,"url":"https://github.com/ahmnouira/iot_platform_flask","last_synced_at":"2025-04-26T09:32:22.664Z","repository":{"id":48469723,"uuid":"192032508","full_name":"ahmnouira/IoT_Platform_Flask","owner":"ahmnouira","description":"IoT Platform Developed using flask PFE 2019.","archived":false,"fork":false,"pushed_at":"2023-12-15T20:32:48.000Z","size":29242,"stargazers_count":6,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T10:40:05.193Z","etag":null,"topics":["card-data","docker","docker-container","flask","iot-platform","machine","python","standalone"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmnouira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-15T03:34:40.000Z","updated_at":"2025-01-05T13:36:10.000Z","dependencies_parsed_at":"2023-12-15T22:02:38.707Z","dependency_job_id":null,"html_url":"https://github.com/ahmnouira/IoT_Platform_Flask","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmnouira%2FIoT_Platform_Flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmnouira%2FIoT_Platform_Flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmnouira%2FIoT_Platform_Flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmnouira%2FIoT_Platform_Flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmnouira","download_url":"https://codeload.github.com/ahmnouira/IoT_Platform_Flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250967347,"owners_count":21515581,"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":["card-data","docker","docker-container","flask","iot-platform","machine","python","standalone"],"created_at":"2024-11-11T00:40:56.320Z","updated_at":"2025-04-26T09:32:17.655Z","avatar_url":"https://github.com/ahmnouira.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT Platform developped using flask\n\nThis is an IoT platform developped using flask where people can veiw the temperature, humidity and gaz state \n\n## Overview\n\nSome photos about this project:\n\n![login](/images/login.png)\n\n![regsiter](/images/register.png)\n\n![cards_edit](/images/cards_edit.png)\n\n![card_data](/images/card_data.png)\n\n![card_data_error](/images/card_data_error.png)\n\n## Running this app\n\nThis app is designed to run in different ways:\n1. As a standalone app running on your machine\n1. As a Docker container running on your machine\n\n## As a standalone app\n\n1. install [python](https://www.python.org/)\n2. `git clone` the project then `cd` into the directory\n3. run `virtualenv -p /usr/bin/python3 venv`or `python -m venv venv` to create a virtual environment\n4. activate it using `source venv/bin/activate`\n5. `pip install -r requirements.txt` to install the app libaries and it dependencies\n\n### setting up the databse \n\n1. you need to have [mysql server](https://www.mysql.com/) installed in your machine, if you are working in linux just typr ` sudo apt-get update \u0026\u0026 apt-get install mysql-server`\n2. type `sudo mysql` to enter to the database\n3. .....\n\n#### run the app\n\nAfter installing, run the server using `flask run`\nAccess the running app in a browser at the URL written to the console (most likely http://localhost:5000)\n\n## As a Docker container running on your machine\n\n1. install [Docker](https://www.docker.com/)\n2. install [Docker compose toolset](https://docs.docker.com/compose/install/)\n2. run `docker version` to check if docker is installed \n2. run `docker-compose --version` to check if docker-compose is installed\n3. run `docker-compose up -d --build` to build the docker image of the flask app and mysql database\n3. `docker images` list the local avaible images\n4. go to http://localhost:8000 to start the container \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmnouira%2Fiot_platform_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmnouira%2Fiot_platform_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmnouira%2Fiot_platform_flask/lists"}