{"id":20904947,"url":"https://github.com/davipythonweb/practicing_power_","last_synced_at":"2026-04-13T03:01:54.130Z","repository":{"id":236922513,"uuid":"793429113","full_name":"davipythonweb/practicing_power_","owner":"davipythonweb","description":"studying a little- Server no render.com","archived":false,"fork":false,"pushed_at":"2024-06-15T02:13:57.000Z","size":21432,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T21:15:34.923Z","etag":null,"topics":["api","docker-compose","javascript","jest","next","postgres","react"],"latest_commit_sha":null,"homepage":"https://laboratorio-1-6w67.onrender.com/","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/davipythonweb.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-04-29T07:55:18.000Z","updated_at":"2024-06-15T02:14:00.000Z","dependencies_parsed_at":"2024-05-30T06:05:43.881Z","dependency_job_id":null,"html_url":"https://github.com/davipythonweb/practicing_power_","commit_stats":null,"previous_names":["davipythonweb/practicing_power_"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davipythonweb/practicing_power_","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davipythonweb%2Fpracticing_power_","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davipythonweb%2Fpracticing_power_/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davipythonweb%2Fpracticing_power_/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davipythonweb%2Fpracticing_power_/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davipythonweb","download_url":"https://codeload.github.com/davipythonweb/practicing_power_/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davipythonweb%2Fpracticing_power_/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31737849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"online","status_checked_at":"2026-04-13T02:00:06.623Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","docker-compose","javascript","jest","next","postgres","react"],"created_at":"2024-11-18T13:19:50.767Z","updated_at":"2026-04-13T03:01:54.107Z","avatar_url":"https://github.com/davipythonweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# practicing*power*\n\n-prettier esta *desabilitado* in Codespaces\n\n* com framework next  e biblioteca react\n\n*server no render.com*\n`https://laboratorio-1-6w67.onrender.com/`\n- conferir a pagina de status do server\n`https://status.render.com/`\n\n#### formato de data ISO-8601\n\n- instalar pacote como dependencia como de desenvolvimento\n`npm install --save-dev jest@29.6.2`\n\n- primeiros passos(de baixo para cima)\n`npm install react-dom@18.2.0`\n`npm install react@18.2.0`\n`npm install next@13.1.6`\n`npm init`\n`nvm install`\n`nvm alias default lts/hydrogen`\n`nvm install lts/hydrogen`\n\n\u003c!-- ultilizando .env =\u003e para variaveis de ambiente --\u003e\n\n\u003c!-- instalar o pg --\u003e\n`npm install pg@8.11.3`\n\n\u003c!-- usando DOCKER-COMPOSE --\u003e\n`criar o arquivo compose.yaml`\n\u003c!-- criar a variavel de ambiente password --\u003e\n`environment:POSTGRES_PASSWORD:(a sua senha)`\n\u003c!-- criar e rodar o container e imagem --\u003e\n`docker compose up`\n\u003c!-- porta e server do container  do docker postgres  ipv4 =\u003e 0.0.0.0 port =\u003e 5432 --\u003e\n\u003c!-- listar processos --\u003e\n`docker ps`\n\u003c!-- forçar listar todos os processos --\u003e\n`docker ps --all`\n`docker -a`\n\u003c!-- ver os logs do docker --\u003e\n`docker logs (nome do container)`\n\u003c!-- subindo o container em modo desanexado do terminal(rosa o service em background) --\u003e\n`docker compose up --detach`\n`docker compose up -d`\n\u003c!-- subindo o container e forçar uma recriação --\u003e\n`docker compose up -d --force-recreate`\n\u003c!-- destruir o container --\u003e\n`docker compose down`\n\u003c!-- criar o container a partir do arquivo yaml detro de uma pasta --\u003e\n`docker compose --file infra/compose.yaml up`\n`docker compose -f infra/compose.yaml up`\n\n\n\u003c!-- instalar o postgres-client --\u003e\n`sudo apt update`\n`sudo apt install postgresql-client`\n\n\u003c!-- comandos postgres --\u003e\n`psql --host=localhost --username=postgres --port=5432`\n\u003c!-- sair do terminal editor do postgres --\u003e\n`\\q`\n\n\n\n- para rodar testes\n`npm run test`\n`npm test`\n\u003c!-- script para testes automaticos --\u003e\n`npm run test:watch`\n\n\u003c!-- TDD =\u003e Test Driven Development =\u003e \n      DESENVOLVIMENTO ORIENTADO A TESTES --\u003e\n\n\u003c!-- Primeiro se faz o test, depois programa\n    o codigo que vai ser a entrada para o test  --\u003e\n\n- Fazer query sanitization ou limpeza de consulta\n\n\n- studying a little\n  _pluguins_\n- Prettier\n- EditorConfig\n- Live Server\n- jest\n\n- ler arquivos com prettier =\u003e npm run lint:check\n- escrever nos arquivos com prettier =\u003e npm run lint:fix\n- para verificar as alteraçoes nos arquivos =\u003e git diff\n- verificar o satatus dos arquivo =\u003e git status\n- levar para a stage tudo que foi modificado na pasta de trabalho =\u003e git add -A\n- para rever as modificações =\u003e git log\n- para veras modificaçoes de forma resumida =\u003e git log --stat\n- tudo eh salvo =\u003e git commmit -m ''\n- ver modificaçoes de forma resumida =\u003e git log --oneline\n- tudo que estiver no stade, emendar com o commit anterior.(o commit anterior eh descartado e eh criado um novo commit) =\u003e git commit --amend\n- empurar as modificações para o github(upload) =\u003e git push\n- forçar o envio das modificações, pos o git commit --amend =\u003e git push --force\n- puxar as informaçoes do github(download) =\u003e git pull\n- modificar um arquivo no git =\u003e git mv +(arquivo) + (novoarquivo)\n\n- resumindo o comando git add -A e commit -m =\u003egit commit -am ''\n- para restaurar todos os arquivosdo repository =\u003e git restore .\n\n* OBS: os commits são IMUTÁVEIS.\nA branch  main, local/main eh a linha do tempo principal.\nA banch origin/main eh a branch  de origem que esta no github, aponta o repositorio de origem na linha do tempo main.\n#### origamid_frontend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavipythonweb%2Fpracticing_power_","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavipythonweb%2Fpracticing_power_","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavipythonweb%2Fpracticing_power_/lists"}