{"id":19091945,"url":"https://github.com/matheusafonseca/c115-trabalho1","last_synced_at":"2026-05-02T20:35:26.797Z","repository":{"id":254158381,"uuid":"845658435","full_name":"matheusAFONSECA/C115-trabalho1","owner":"matheusAFONSECA","description":"Repository dedicated to storing and managing the first assignment for C115 - Concepts and Technologies for Connected Devices.","archived":false,"fork":false,"pushed_at":"2024-10-01T14:03:15.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T07:31:42.103Z","etag":null,"topics":["docker","docker-compose","flask-api","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/matheusAFONSECA.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":"2024-08-21T17:13:13.000Z","updated_at":"2024-10-30T14:56:42.000Z","dependencies_parsed_at":"2025-01-02T23:13:30.872Z","dependency_job_id":"e52ff121-22d1-474d-9cf8-c4e92ea17b9a","html_url":"https://github.com/matheusAFONSECA/C115-trabalho1","commit_stats":null,"previous_names":["matheusafonseca/c115-trabalho1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matheusAFONSECA/C115-trabalho1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2FC115-trabalho1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2FC115-trabalho1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2FC115-trabalho1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2FC115-trabalho1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheusAFONSECA","download_url":"https://codeload.github.com/matheusAFONSECA/C115-trabalho1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2FC115-trabalho1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-compose","flask-api","python"],"created_at":"2024-11-09T03:17:37.206Z","updated_at":"2026-05-02T20:35:26.759Z","avatar_url":"https://github.com/matheusAFONSECA.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C115 - Trabalho 1\n\nRepository dedicated to storing and managing the first assignment for **C115 - Concepts and Technologies for Connected Devices**.\n\n## Overview\n\nThis project demonstrates the implementation of an application that utilizes an API to handle requests made by a chatbot. The project is divided into two main components:\n\n- **API**: Handles the responses to the requests made by the chatbot, built using `Flask`.\n- **Frontend**: Manages the interaction between the user and the chatbot, developed using `Streamlit`.\n\nThe project is built using `Python 3.9`.\n\n## Index\n- [Cloning the Repository](#cloning-the-repository)\n- [Running the Code Locally](#running-the-code-locally)\n  - [Creating and Activating the Virtual Environment](#creating-and-activating-the-virtual-environment)\n    - [1 - Using Commands](#1---using-commands)\n    - [2 - Using a Script](#2---using-a-script)\n  - [Installing the Requirements](#installing-the-requirements)\n  - [Running python files](#running-python-files)\n- [Running the Code with Docker](#running-the-code-with-docker)\n\n## Cloning the Repository\n\nTo get started, clone this repository to your local machine. Run the following command in the directory where you want to save the repository:\n\n```bash\ngit clone https://github.com/matheusAFONSECA/C115-trabalho1.git\n```\n\n## Running the Code Locally\n\n### Creating and Activating the Virtual Environment\n\nA Python interpreter must be previous installed on your machine to create and activate the virtual environment. There are two ways to set up the virtual environment:\n\n#### 1 - Using Commands\n\nTo create a virtual environment in your repository, run the following command:\n\n```bash\npython -m venv C115venv\n```\n\nAfter creating the virtual environment, activate it with the following command:\n\n```bash\n.\\C115venv\\Scripts\\activate\n```\n\n#### 2 - Using a script\n\nAlternatively, you can use one of the scripts provided in the `scripts` directory to automate the setup:\n\n- **Windows:**\n\n```bash\n.\\scripts\\create_and_activate_venv.ps1\n```\n\n- **Linux or macOS:**\n\n```bash\n./scripts/create_and_activate_venv.sh\n```\n\n### Installing the Requirements\n\nOnce the virtual environment is active, install the required dependencies by running the following command:\n\n```bash\npip install -r requirements.txt\n```\n\n### Running python files\n\nTo run the application, you'll need to use two terminals:\n\n- In the first terminal, activate the API by running:\n```bash\npython .\\API\\main.py\n```\n- In the second terminal, start the frontend interface by running:\n\n```bash\nstreamlit run .\\frontend\\main.py\n```\n\n## Running the Code with Docker\n\nAn alternative way to run the project is by using Docker, which allows you to containerize the application and its dependencies. Docker ensures that the application runs consistently regardless of the environment it is deployed in.\n\nTo run the project using Docker, simply use the following command in the root directory of the project:\n\n```bash\ndocker-compose up --build\n```\n\nThis command will build the Docker images for both the API and the frontend, and then start the containers, making the application accessible as defined in the `docker-compose.yml` file.\n\n\u003e **Remember:** Make sure Docker is installed and the Docker Engine is running on your machine before attempting to use Docker commands.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusafonseca%2Fc115-trabalho1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusafonseca%2Fc115-trabalho1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusafonseca%2Fc115-trabalho1/lists"}