{"id":19750069,"url":"https://github.com/umar-muneer/conrad-express-tutorial","last_synced_at":"2025-10-28T21:53:59.665Z","repository":{"id":53594283,"uuid":"328361537","full_name":"umar-muneer/conrad-express-tutorial","owner":"umar-muneer","description":"A short tutorial about expressjs","archived":false,"fork":false,"pushed_at":"2021-03-25T15:28:24.000Z","size":219,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T21:53:56.710Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umar-muneer.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":"2021-01-10T10:58:05.000Z","updated_at":"2021-01-20T06:55:24.000Z","dependencies_parsed_at":"2022-09-17T03:32:01.156Z","dependency_job_id":null,"html_url":"https://github.com/umar-muneer/conrad-express-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umar-muneer/conrad-express-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umar-muneer%2Fconrad-express-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umar-muneer%2Fconrad-express-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umar-muneer%2Fconrad-express-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umar-muneer%2Fconrad-express-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umar-muneer","download_url":"https://codeload.github.com/umar-muneer/conrad-express-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umar-muneer%2Fconrad-express-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281520722,"owners_count":26515681,"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-10-28T02:00:06.022Z","response_time":60,"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":"2024-11-12T02:29:57.686Z","updated_at":"2025-10-28T21:53:59.633Z","avatar_url":"https://github.com/umar-muneer.png","language":"JavaScript","readme":"# conrad-express-tutorial\nA short tutorial about expressjs\n\n## Resources\nhttps://www.npmjs.com/package/express-bunyan-logger\n\nhttp://expressjs.com/en/resources/middleware/body-parser.html\n\n\n## Sequelize\nhttps://sequelize.org/v4/\n### Plan\n* Data modeling\n* Define models in sequelize\n* Define associations\n* find, findAll, create, update, delete\n* Instances\n* Advanced (hooks, scopes, paranoid, transactions)\n\n#### Data Modeling\nWe have three entities\n\n1. Courses\n2. Students\n3. Teachers\n\n* A course can have many students\n* A student can take many courses\n* A course can have one teacher\n* A teacher can take many courses\n\n**teachers**\nid | int\nname | string\ncreatedAt | Date\nupdatedAt | Date\n\n**students**\nid | int\nname | string\ncreatedAt | Date\nupdatedAt | Date\n\n**courses**\nid | int\nname | string\nteacher_id | int\ncreatedAt | Date\nupdatedAt | Date\n\n**course_student**\nid | int\nstudent_id | int\ncourse_id | int\ngrade | string\ncreatedAt | Date\nupdatedAt | Date\n\n# How to run the Database\n**docker rm -f mysql \u0026\u0026 docker run --name=mysql -v /Users/umarmuneer/Documents/mysql-data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=your-root-password mysql**\n\n# How to run the server\n**USER=your-db-user PASS=your-db-user-password npx nodemon index.js**\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumar-muneer%2Fconrad-express-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumar-muneer%2Fconrad-express-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumar-muneer%2Fconrad-express-tutorial/lists"}