{"id":23910503,"url":"https://github.com/arthur-llevy/ivehicle","last_synced_at":"2026-04-30T11:35:54.276Z","repository":{"id":259163231,"uuid":"876469580","full_name":"Arthur-Llevy/IVehicle","owner":"Arthur-Llevy","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-04T03:33:28.000Z","size":25659,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T04:22:46.420Z","etag":null,"topics":["api","csharp","docker","dotnet","entity-framework","jwt","mysql","xunit"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Arthur-Llevy.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":"2024-10-22T02:52:57.000Z","updated_at":"2025-01-04T03:33:31.000Z","dependencies_parsed_at":"2024-10-23T06:41:33.270Z","dependency_job_id":"a450280e-34e1-4b8a-ab07-7c432db034fe","html_url":"https://github.com/Arthur-Llevy/IVehicle","commit_stats":null,"previous_names":["arthur-llevy/minimal-api","arthur-llevy/ivehicle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Llevy%2FIVehicle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Llevy%2FIVehicle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Llevy%2FIVehicle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Llevy%2FIVehicle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arthur-Llevy","download_url":"https://codeload.github.com/Arthur-Llevy/IVehicle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347947,"owners_count":19787236,"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":["api","csharp","docker","dotnet","entity-framework","jwt","mysql","xunit"],"created_at":"2025-01-05T07:13:15.394Z","updated_at":"2026-04-30T11:35:49.240Z","avatar_url":"https://github.com/Arthur-Llevy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IVehicle API\n\nO IVehicle API é um dos projetos que desenvolvi durante o bootcamp Full Stack da [Digital Innovation One](https://www.dio.me/en) - DIO para a conclusão do módulo de Back-End com C#\n\n## Funcionalidades\n- Criar, listar, editar e excluir Administradores\n- Criar, listar, editar e excluir Veículos\n\n## O que foi implantado\n- Interface Front End neste repositório: [IVehicle-Front-End](https://github.com/Arthur-Llevy/IVehicle-frontend)\n- Banco de dados Mysql usando Docker\n- Entity Framework para a manipulação do banco de dados\n- Autenticação com Json Web Token\n- Testes usando XUnit do .NET\n- Biblioteca Scalar como interface gráfica para as rotas da API\n\n## Mídias do projeto\n**Interface inicial do Scalar**\n\n![Imagem 1](./assets/images/screenshot_1.png)\n\n**Teste de uma requisição**\n\n![Imagem 2](./assets/images/screenshot_2.png)\n\n## Como rodar o projeto\n1. Certifique-se que o dotnet na versão 9.0 ou superior está instalado em sua máquina. Use o comando abaixo para verficiar:\n\n```bash\ndotnet --version\n```\nCaso não seja retornada a versão do dotnet, o mesmo não está instalado em sua máquina\n\n1.1 Também certifique-se que o docker está instalado em sua máquina\n```bash\ndocker --version\n```\nCaso não seja retornada a versão do docker, o mesmo não está instalado em sua máquina\n\n\n2. Clone o projeto para um diretório de sua preferência\n```bash\ngit clone git@github.com:Arthur-Llevy/minimal-api.git\n```\n\n3. Navege até o projeto\n```bash\ncd ./minimal-api\n```\n\n4. Inicialize o banco de dados com o docker\n```bash\ndocker compose up --build\n```\n\n***Observação*** a flag \"--build\" só é necessária na primeira vez que você executa o comando. Da segunda em diante, basta executar \"docker compose up\".\n\n5. Para rodar a api, vá até a pasta /Api\n```bash\ncd ./Api\n```\n\n6. Baixe as dependências\n```bash\ndotnet restore\n```\n\n7. Inicie o projeto\n```bash\ndotnet watch run\n```\n\n\nIrá aparecer algo semelhante a mensagem abaixo em seu terminal, contento as portas onde você pode acessar à api\n\u003cpre\u003e\ninfo: Microsoft.Hosting.Lifetime[14]\n      Now listening on: http://localhost:5277\ninfo: Microsoft.Hosting.Lifetime[0]\n      Application started. Press Ctrl+C to shut down.\ninfo: Microsoft.Hosting.Lifetime[0]\n      Hosting environment: Development\ninfo: Microsoft.Hosting.Lifetime[0]\n      Content root path: /minimal-api/Api   \n\u003c/pre\u003e\n\n8. (Opicional) Acessar a UI do Scalar\nNavege até a rota \n\u003cpre\u003e\nhttp://localhost:\u003c\"porta\"\u003e/scalar/v1\n\u003c/pre\u003e\n\n9. Rodar os testes\nVá para a pasta ./Tests localizada na raiz do projeto\n```bash\n    cd ../Tests\n```\n\n10. Baixar dependências\n```bash\n    donet restore\n```\n\n11. Execute os testes\n```\n    dotnet test\n```\n\n\n---\n\n[ENGLISH]\n\n---\n\n# IVehicle API\n\nThe IVehicle API is one of the projects I developed during the Full Stack bootcamp at [Digital Innovation One](https://www.dio.me/en) - DIO to complete the Back-End with C# module.\n\n## Functionalities\n- Create, list, edit and delete Administrators\n- Create, list, edit and delete Vehicles\n\n## What has been deployed\n- Front End interface in this repository: [IVehicle-Front-End](https://github.com/Arthur-Llevy/IVehicle-frontend)\n- Mysql database using Docker\n- Entity Framework for handling the database\n- Authentication with Json Web Token\n- Testing using .NET's XUnit\n- Scalar library as a graphical interface for API routes\n\n## Project media\n**Scalar's initial interface**\n\n![Image 1](./assets/images/screenshot_1.png)\n\n**Testing a request**\n\n![Image 2](./assets/images/screenshot_2.png)\n\n## How to run the project\n1. Make sure that dotnet version 9.0 or higher is installed on your machine. Use the command below to check:\n\n```bash\ndotnet --version\n```\nIf the dotnet version is not returned, it is not installed on your machine\n\n1.1 Also make sure that docker is installed on your machine\n```bash\ndocker --version\n```\nIf the docker version is not returned, it is not installed on your machine\n\n2. Clone the project to a directory of your choice\n```bash\ngit clone git@github.com:Arthur-Llevy/minimal-api.git\n```\n\n3. Navigate to the project\n```bash\ncd ./minimal-api\n```\n\n4. Initialize the database with docker\n```bash\ndocker compose up --build\n```\n\n***Note*** the \"--build\" flag is only necessary the first time you run the command. From the second step onwards, just run \"docker compose up\".\n\n5. To run the API, go to the /Api folder\n```bash\ncd ./Api\n```\n\n6. Download the dependencies\n```bash\ndotnet restore\n```\n\n7. Start the project\n```bash\ndotnet watch run\n```\n\nSomething similar to the message below will appear in your terminal, containing the ports where you can access the API\n\u003cpre\u003e\ninfo: Microsoft.Hosting.Lifetime[14]\nNow listening on: http://localhost:5277\ninfo: Microsoft.Hosting.Lifetime[0]\nApplication started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0]\nHosting environment: Development\ninfo: Microsoft.Hosting.Lifetime[0]\nContent root path: /minimal-api/Api\n\u003c/pre\u003e\n\n8. (Optional) Access the Scalar UI\nNavigate to the path\n\u003cpre\u003e\nhttp://localhost:\u003c\"port\"\u003e/scalar/v1\n\u003c/pre\u003e\n\n9. Run the tests\nGo to the ./Tests folder located in the project root\n```bash\ncd ../Tests\n```\n\n10. Download dependencies\n```bash\ndonet restore\n```\n\n11. Run the tests\n```\ndotnet test\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur-llevy%2Fivehicle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthur-llevy%2Fivehicle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur-llevy%2Fivehicle/lists"}