{"id":29121374,"url":"https://github.com/mmaffi/full-stack_crud","last_synced_at":"2025-06-29T16:05:08.719Z","repository":{"id":300140742,"uuid":"1005247378","full_name":"MMaffi/Full-Stack_CRUD","owner":"MMaffi","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-20T03:13:32.000Z","size":1490,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T04:20:39.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MMaffi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-19T23:31:13.000Z","updated_at":"2025-06-20T03:13:35.000Z","dependencies_parsed_at":"2025-06-20T04:32:09.825Z","dependency_job_id":null,"html_url":"https://github.com/MMaffi/Full-Stack_CRUD","commit_stats":null,"previous_names":["mmaffi/full-stack_crud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MMaffi/Full-Stack_CRUD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMaffi%2FFull-Stack_CRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMaffi%2FFull-Stack_CRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMaffi%2FFull-Stack_CRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMaffi%2FFull-Stack_CRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MMaffi","download_url":"https://codeload.github.com/MMaffi/Full-Stack_CRUD/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMaffi%2FFull-Stack_CRUD/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262622894,"owners_count":23338704,"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":[],"created_at":"2025-06-29T16:05:08.033Z","updated_at":"2025-06-29T16:05:08.710Z","avatar_url":"https://github.com/MMaffi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📌 Full-Stack CRUD App\n\n## 🚀 Overview\nFull-Stack application built with Node.js (Express) backend and React frontend,  \nusing Sequelize to manage a MySQL database.  \nSupports CRUD operations (Create, Read, Update, Delete) with migrations.\n\n## 🛠 Technologies\n- Backend: Node.js, Express, Sequelize, MySQL  \n- Frontend: React  \n- Environment variables: dotenv  \n- Database CLI: Sequelize CLI  \n\n## ✅ Features\n- Full CRUD on the database  \n- Migrations support with SequelizeMeta tracking  \n- Configuration via .env for multiple environments  \n\n## 🔧 Local Setup\n\n### Prerequisites\n- Node.js  \n- MySQL  \n- Git\n\n### 1. Clone the repo\n```bash\ngit clone https://github.com/MMaffi/Full-Stack_CRUD.git\n```\n\n### 2. Install backend dependencies\n```bash\ncd backend\nnpm install\n```\n\n### 3. Create .env file with your DB credentials\n```bash\nDB_HOST=localhost\nDB_USER=seu_usuario_aqui\nDB_PASS=sua_senha_aqui\nDB_NAME=nome_do_banco\nDB_DIALECT=seu_dialect || 'mysql'\n```\n\n### 4. Run migrations\n\n```bash\nnpx sequelize db:migrate\n```\n\n### 5. Start the backend server\n```bash\nnpm start\n```\n\n### 6. In another terminal, install frontend dependencies\n```bash\ncd ../frontend\nnpm install\n```\n\n### 7. Start the frontend\n```bash\nnpm start\n```\n\nOpen http://localhost:3000 in your browser.\n\n## ⚙️ Useful Commands\n\n```npx sequelize db:migrate``` → run migrations\n\n```npx sequelize db:migrate:undo:all``` → undo all migrations\n\n```npm start``` → start backend or frontend server\n\n## 🧭 API Endpoints (example for /api/users)\n```GET /``` → list users\n\n```POST /``` → create user\n\n```GET /:id``` → get user by ID\n\n```PUT /:id``` → update user\n\n```DELETE /:id``` → delete user\n\n## 📦 Deployment\nSet environment variables in production\n\nRun migrations on the production server\n\nStart backend and frontend (e.g. Heroku, Vercel)\n\n## 🤝 Contributing\n1. Fork the repo\n\n2. Create a feature branch\n\n3. Commit with clear messages\n\n4. Open a Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmaffi%2Ffull-stack_crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmaffi%2Ffull-stack_crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmaffi%2Ffull-stack_crud/lists"}