{"id":19974130,"url":"https://github.com/larissaperinoto/blogs-api","last_synced_at":"2026-04-12T10:35:26.080Z","repository":{"id":116557856,"uuid":"560112255","full_name":"larissaperinoto/blogs-api","owner":"larissaperinoto","description":"The Blogs API is an APIRest and database for managing the production of blog content.iamento da produção de conteúdo de um blog.","archived":false,"fork":false,"pushed_at":"2023-02-16T11:37:17.000Z","size":552,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T09:41:01.114Z","etag":null,"topics":["express","javascript","joi","jwt","mysql","nodejs","sequelize","sql","swagger"],"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/larissaperinoto.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":"2022-10-31T19:03:28.000Z","updated_at":"2024-08-19T10:02:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"5361b2fc-3e58-4796-8875-a234c844582a","html_url":"https://github.com/larissaperinoto/blogs-api","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/larissaperinoto%2Fblogs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larissaperinoto%2Fblogs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larissaperinoto%2Fblogs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larissaperinoto%2Fblogs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larissaperinoto","download_url":"https://codeload.github.com/larissaperinoto/blogs-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241406713,"owners_count":19958025,"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":["express","javascript","joi","jwt","mysql","nodejs","sequelize","sql","swagger"],"created_at":"2024-11-13T03:14:00.032Z","updated_at":"2025-12-30T22:07:02.874Z","avatar_url":"https://github.com/larissaperinoto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blogs API\n\n[Trybe](https://www.betrybe.com/) is a technology school focused on training Web Developers and the Blogs API project was proposed as an activity to improve studies on back-end development.\n\n## Description\n\nThe application is an API and a database with the content of a blog. It must allow creating, reading, updating and removing blog information from the database. It also performs authentication to grant permissions to users.\n\n\n## Technologies and Tools\n\u003cdiv\u003e\n    \u003cimg src=\"https://img.shields.io/badge/MySQL-005C84?style=for-the-badge\u0026logo=mysql\u0026logoColor=white\" alt=\"mysql\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Node.js-339933?style=for-the-badge\u0026logo=nodedotjs\u0026logoColor=white\" alt=\"nodejs\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Docker-2CA5E0?style=for-the-badge\u0026logo=docker\u0026logoColor=white\" alt=\"docker\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Express.js-000000?style=for-the-badge\u0026logo=express\u0026logoColor=white\" alt=\"express\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Sequelize-52B0E7?style=for-the-badge\u0026logo=Sequelize\u0026logoColor=white\" alt=\"sequelize\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Swagger-85EA2D?style=for-the-badge\u0026logo=Swagger\u0026logoColor=white\" alt=\"Swagger\"/\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\nIn the elaboration of the RESTful API, the **Model-Service-Controller(MSC)** architecture was used.The other technologies and tools were:\n\n- [Node.JS](https://nodejs.org/en/)\n- [Express](https://expressjs.com/pt-br/)\n- [MySQL](https://www.mysql.com/)\n- [Docker](https://www.docker.com/)\n- [Sequelize](https://sequelize.org/)\n- [Swagger](https://swagger.io/)\n\n## ⚙️ How to use\n\nTo run the application start with the repositorie clone using the command bellow.\n\n    git clone git@github.com:larissaperinoto/blogs-api.git\n    \nNavigate to the project root\n\n    cd blogs-api/\n    \n\u003cdetails\u003e\n   \u003csummary\u003e\u003cstrong\u003eRunning locally\u003c/strong\u003e\u003c/summary\u003e \n  \u003c/br\u003e\n  \u003cstrong\u003eObs:\u003c/strong\u003e To run the application this way you must have [Node](https://nodejs.org/en/) installed on your machine.\n  \u003c/br\u003e\n  \u003c/br\u003e\n  \n  In the root of the project run the command below to install the dependencies.\n  \n    npm install\n  \n  Login to the database using your credentials.\n \n    mysql -u \u003cyour-username\u003e -p\n  \n  Run the commands to create the **BlogsApi** database\n  \n    npm prestart\n    \n  Start the application with \u003cstrong\u003enodemon\u003c/strong\u003e using the command bellow.\n  \n    npm debug\n  \n\u003c/details\u003e\n\n\u003cdetails\u003e\n   \u003csummary\u003e\u003cstrong\u003eRunning with Docker\u003c/strong\u003e\u003c/summary\u003e \n  \u003c/br\u003e\n  \n  \u003cstrong\u003eObs:\u003c/strong\u003e To run the application this way you must have [Docker](https://www.docker.com/) installed on your machine.\n  \n  \u003c/br\u003e\n  \n  In the root of the project, upload the \u003cstrong\u003eblogs_api\u003c/strong\u003e and \u003cstrong\u003eblogs_api_db\u003c/strong\u003e containers using docker-compose.\n\n    docker-compose up -d\n    \n  Open the \u003cstrong\u003eblogs_api\u003c/strong\u003e container terminal.\n\n    docker exec -it blogs_api bash\n\n  Once in the container terminal, run the command below to install the dependencies.\n    \n    npm install\n    \n  To connect with database, open the \u003cstrong\u003eblogs_api_db\u003c/strong\u003e container terminal.\n  \n    docker exec -it blogs_api_db bash\n    \n  Login to the database using the credentials described in the \u003cstrong\u003edocker-compose.yaml\u003c/strong\u003e.\n  \n    mysql -r root -p\n\n  To create the database, run the command bellow in the \u003cstrong\u003eblogs_api\u003c/strong\u003e container terminal.\n  \n    npm prestart\n    \n  To start the server with \u003cstrong\u003enodemon\u003c/strong\u003e use the command bellow in the terminal of the \u003cstrong\u003eblogs_api\u003c/strong\u003e container.\n\n    \n    npm run debug\n    \n\u003c/details\u003e\n\n## Routes\n\n You can check all routes by accessing the /docs endpoint in your browser when running the application.\n\n\u003cdetails\u003e\n    \u003csummary\u003eRoutes preview\u003c/summary\u003e\n    \n\n![Captura de tela de 2023-01-03 12-17-30](https://user-images.githubusercontent.com/98956659/210414272-be24136f-e2e9-4b72-8c83-f1c98ba4bc84.png)\n![Captura de tela de 2023-01-03 12-17-42](https://user-images.githubusercontent.com/98956659/210414520-2b59fb45-9162-4164-81c0-44f2369ea48f.png)\n\n    \n\u003c/details\u003e\n    \n---\n \nDeveloped by [Larissa Perinoto](www.linkedin.com/in/larissaperinoto), © 2022.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarissaperinoto%2Fblogs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarissaperinoto%2Fblogs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarissaperinoto%2Fblogs-api/lists"}