{"id":30441601,"url":"https://github.com/robsonmt/code-challenge-nevoa","last_synced_at":"2025-10-16T16:51:56.101Z","repository":{"id":306740898,"uuid":"1026466475","full_name":"RobsonMT/Code-Challenge-Nevoa","owner":"RobsonMT","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T23:20:33.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T01:40:56.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/RobsonMT.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,"zenodo":null}},"created_at":"2025-07-26T00:20:22.000Z","updated_at":"2025-07-29T23:20:37.000Z","dependencies_parsed_at":"2025-07-27T11:21:56.623Z","dependency_job_id":"121f5820-f022-48c9-ab29-fe881a6a1052","html_url":"https://github.com/RobsonMT/Code-Challenge-Nevoa","commit_stats":null,"previous_names":["robsonmt/code-chalenge-nevoa","robsonmt/code-challenge-nevoa"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/RobsonMT/Code-Challenge-Nevoa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobsonMT%2FCode-Challenge-Nevoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobsonMT%2FCode-Challenge-Nevoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobsonMT%2FCode-Challenge-Nevoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobsonMT%2FCode-Challenge-Nevoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobsonMT","download_url":"https://codeload.github.com/RobsonMT/Code-Challenge-Nevoa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobsonMT%2FCode-Challenge-Nevoa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745789,"owners_count":24813527,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2025-08-23T07:09:24.383Z","updated_at":"2025-10-16T16:51:56.017Z","avatar_url":"https://github.com/RobsonMT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📘 Projeto Fullstack de Cursos (Backend + Frontend)\n\nEste repositório contém duas aplicações:\n\n- 📦 **Backend**: API REST com Node.js, Express, TypeORM e PostgreSQL\n- 💻 **Frontend**: Interface web com Next.js e TailwindCSS\n\n---\n\n## 🧱 Requisitos para rodar localmente\n\n- Node.js (v18+ recomendado)\n- PostgreSQL (v15+)\n- Yarn ou npm (Yarn recomendado)\n- Git\n\n---\n\n## 📂 Estrutura do Projeto\n\n```\n.\n├── backend/\n│   ├── src/\n│   ├── package.json\n│   └── tsconfig.json\n├── frontend/\n│   ├── app/ ou pages/\n│   ├── package.json\n│   └── tailwind.config.js\n```\n\n---\n\n## 🧑‍💻 1. Configurando o Banco de Dados\n\n1. Inicie o PostgreSQL localmente.\n2. Crie um banco chamado:\n\n```bash\npsql -U postgres\nCREATE DATABASE course_db;\n```\n\n3. Você pode usar `pgAdmin`, DBeaver ou CLI para isso.\n\n---\n\n## ⚙️ 2. Configurando o Backend\n\n### Acesse a pasta:\n\n```bash\ncd backend\n```\n\n### Instale as dependências:\n\n```bash\nyarn install\n```\n\n### Configure o `.env`:\n\nCrie o arquivo `backend/.env` com o conteúdo abaixo:\n\n```env\nDB_HOST=localhost               \nDB_PORT=5432              \nDB_USERNAME=postgres\nDB_PASSWORD=1234\nDB_NAME=course_db\n\nSECRET_KEY=\nEXPIRES_IN=1h\nRUN_PORT=8000\n```\n\n\u003e Ajuste `POSTGRES_PWD` conforme sua configuração local.\n\n### Compile o TypeScript:\n\n```bash\nyarn build\n```\n\n### Rode as migrações:\n\n```bash\nyarn migration:run\n```\n\n### Inicie o servidor:\n\n```bash\nyarn start\n```\n\n\u003e A API estará em: [http://localhost:8000](http://localhost:8000)\n\n---\n\n## 🌐 3. Configurando o Frontend\n\n### Acesse a pasta:\n\n```bash\ncd ../frontend\n```\n\n### Instale as dependências:\n\n```bash\nyarn install\n```\n\n### Rode o servidor Next.js:\n\n```bash\nyarn dev\n```\n\n\u003e A aplicação web estará disponível em: [http://localhost:3000](http://localhost:3000)\n\n---\n\n## 🚀 Endpoints principais da API\n\n| Método | Rota             | Descrição              |\n|--------|------------------|------------------------|\n| POST   | /register        | Registro de usuário    |\n| POST   | /login           | Login e token JWT      |\n| GET    | /courses/public  | Listar cursos públicos |\n| CRUD   | /courses         | Gerenciar cursos       |\n\n---\n\n## 🧪 Scripts úteis no backend\n\n```json\n\"scripts\": {\n  \"build\": \"tsc\",\n  \"start\": \"node dist/server.js\",\n  \"dev\": \"ts-node-dev src/server.ts\",\n  \"migration:run\": \"ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:run -d src/data-source.ts\"\n}\n```\n\n---\n\n## 📌 Dicas\n\n- Certifique-se de que o PostgreSQL está rodando e aceitando conexões em `localhost:5432`.\n- Use o comando `yarn dev` no backend para hot-reload durante o desenvolvimento.\n- Use ferramentas como [Insomnia](https://insomnia.rest/) ou [Postman](https://www.postman.com/) para testar a API.\n\n---\n\n## ❓ Dúvidas?\n\nAbra uma **issue** no repositório ou entre em contato com o autor. 😉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobsonmt%2Fcode-challenge-nevoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobsonmt%2Fcode-challenge-nevoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobsonmt%2Fcode-challenge-nevoa/lists"}