{"id":18624859,"url":"https://github.com/gabrieldarezzo/nodejs-curso","last_synced_at":"2026-04-18T00:02:10.973Z","repository":{"id":44501849,"uuid":"192937180","full_name":"gabrieldarezzo/nodejs-curso","owner":"gabrieldarezzo","description":"Curso da RocketSeat","archived":false,"fork":false,"pushed_at":"2022-12-10T19:41:53.000Z","size":1159,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-17T07:07:52.871Z","etag":null,"topics":["docker","docker-windows","mongo","node"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/gabrieldarezzo.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":"2019-06-20T14:42:40.000Z","updated_at":"2019-10-30T04:41:22.000Z","dependencies_parsed_at":"2023-01-26T09:01:12.942Z","dependency_job_id":null,"html_url":"https://github.com/gabrieldarezzo/nodejs-curso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrieldarezzo/nodejs-curso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fnodejs-curso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fnodejs-curso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fnodejs-curso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fnodejs-curso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrieldarezzo","download_url":"https://codeload.github.com/gabrieldarezzo/nodejs-curso/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fnodejs-curso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-windows","mongo","node"],"created_at":"2024-11-07T04:31:35.862Z","updated_at":"2026-04-18T00:02:10.916Z","avatar_url":"https://github.com/gabrieldarezzo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Curso de Node da [RocketSeat](https://rocketseat.com.br/starter/curso-gratuito-nodejs). \n\nConstrução de APIs REST utilizando o NodeJS, back-end utilizando o JavaScript.\n* Uso de NPM.\n* Uso de Docker.\n* Criação de rotas.\n* Criação de Controllers.\n* CRUD no Mongo.\n* Utilizar as libs: 'nodemon', 'require-dir', 'mongoose', 'express', 'cors'.\n\n\n---\n\nYou will need [Node/npm](https://nodejs.org/en/download/) to run this project.\n\nAfter install, open your prompt:\n\n```PowerShell\nnpm install\n```\n\nStart Server (static server):\n```PowerShell\nnode server.js\n```\nStart Server (Dynamic server with nodemon `devDependencies`):\n```PowerShell\nnpm run dev\n```\n\n\n# Install Docker (Windows 10 Professional Edition:Mode)\nDownload docker:\nhttps://hub.docker.com/editions/community/docker-ce-desktop-windows  \n\nPs: You'll need [account in Docker](https://hub.docker.com/signup) for download.\n\n\n-\u003e Install `Docker-CE`\n\nPs:  \nIf you use `Windows 10 Home Edition` and get this error when install `Docker-CE` \n![Docker-Error](doc/docker_error.png)     \nYou should download [DockerToolbox](https://download.docker.com/win/stable/DockerToolbox.exe) instead of Docker-CE and fallow this steps:  \n* [`Install Docker ToolBox (Windows 10 Home Edition:Mode)`](https://github.com/gabrieldarezzo/nodejs-curso#install-docker-toolbox-windows-10-home-editionmode)\n\n## Run Docker:\n\n### Add Mongo in docker\n```PowerShell\ndocker pull mongo\n```\n\n### Run mongo\n```PowerShell\ndocker run --name mongodb -p 27017:27017 -d mongo\n```\n\n### Simple Test Mongo over HTTP:\nAccess URL in Chrome: `http://192.168.56.1:1111` to test, you should recive this response:  \n![Response HTTP Mongo](doc/response-http-mongo.png) \n\n\n\n\n---\n\n# Install Docker ToolBox (Windows 10 Home Edition:Mode)\n\n\nDownload and install: [DockerToolbox](https://download.docker.com/win/stable/DockerToolbox.exe).  \n-\u003e  Because Nobody $likes$ Win10-Pro\n\n## Run Docker:\nOpen `Docker Quickstart Terminal`  \n![Icon Quickstart Terminal](doc/icon_docker_quick.png) \n\nWait for this screen:  \n![Icon Quickstart Terminal](doc/docker-start.png)  \n\n\nIn prompt of `Docker Quickstart Terminal` pull mongo:\n```PowerShell\ndocker pull mongo\n```\n\nRun mongo with this params:\n```PowerShell\ndocker run --name database -d -p 27017:27017 mongo --noauth --bind_ip=0.0.0.0\n```\n\nIn Oracle VM VirtualBox, get conf:  \n![Port Forwarding](doc/vm-conf.png) \n\n* Now in Tab `Network`, you'll need port forwarding:  \nPort Host: `27017` \nGuest Host: `1111` \n![Port Forwarding](doc/port_fw.png) \n\n\n### Simple Test Mongo over HTTP:\n\nin prompt, `ipconfig`, you need check IPv4 of: 'VirtualBox#1', 'VirtualBox#2':\n```\nAdaptador Ethernet VirtualBox Host-Only Network:\n   ...\n   Endereço IPv4. . . . . . . .  . . . . . . . : 192.168.56.1\n   ...\n\nAdaptador Ethernet VirtualBox Host-Only Network #2:\n   ...\n   Endereço IPv4. . . . . . . .  . . . . . . . : 192.168.99.1\n   ...\n```\n\nJust enter one of then `[http://IP:PORT]` in Chrome.  \nIn my case `http://192.168.99.1:1111` I received this response:  \n![Response HTTP Mongo](doc/response-http-mongo.png) \n\nWork like a charm in Win 10 Home :laughing: :smiley: :laughing:\n\nMore troubleshooting in this site:  \nhttps://codehangar.io/mongodb-image-instance-with-docker-toolbox-tutorial/\n\n---\n# Commands in Docker:\n\n## List all dockers (actives)\n```PowerShell\ndocker ps\n```\n* `-a` \u003c- list all, include turnOff dockers \n\n\n## Stop Img\n```PowerShell\ndocker stop [IMAGE_ID]\n```\n\n\n## Remover Img\n```PowerShell\ndocker rm [IMAGE_ID]\n```\n    \n\n## Start docker \nIt's good when you restart your machine.\n```PowerShell\ndocker start [NAME_OF_IMAGE]\n```\n\n# Client for MongoDb:\n[Download Robo 3T](https://robomongo.org/download)  \n\n# To test\n\nYou can get a nice client of REST:\nhttps://insomnia.rest/download/\n\nOr just use buttons of `sender.html` to test CREATE,UPDATE,DELETE routes, after all, `cors` already enable in project.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieldarezzo%2Fnodejs-curso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrieldarezzo%2Fnodejs-curso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieldarezzo%2Fnodejs-curso/lists"}