{"id":17973313,"url":"https://github.com/faisal-din/twitter_posts_project","last_synced_at":"2026-04-16T12:41:58.345Z","repository":{"id":259602898,"uuid":"879025250","full_name":"faisal-din/twitter_posts_project","owner":"faisal-din","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-26T19:05:06.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T11:14:18.273Z","etag":null,"topics":["backend","express","express-js","express-middleware","nodejs","nodejs-server","nodemon","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"","language":"EJS","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/faisal-din.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-10-26T18:53:16.000Z","updated_at":"2024-10-26T19:05:09.000Z","dependencies_parsed_at":"2024-10-26T21:15:04.116Z","dependency_job_id":"87ca44fc-9228-4a62-845c-e5869aca8f63","html_url":"https://github.com/faisal-din/twitter_posts_project","commit_stats":null,"previous_names":["faisal-din/twitter_posts_project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-din%2Ftwitter_posts_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-din%2Ftwitter_posts_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-din%2Ftwitter_posts_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisal-din%2Ftwitter_posts_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faisal-din","download_url":"https://codeload.github.com/faisal-din/twitter_posts_project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247093285,"owners_count":20882386,"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":["backend","express","express-js","express-middleware","nodejs","nodejs-server","nodemon","rest-api","restful-api"],"created_at":"2024-10-29T16:30:22.761Z","updated_at":"2026-04-16T12:41:53.312Z","avatar_url":"https://github.com/faisal-din.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Code Breakdown\n\n## 1. Controller: controllers/postsController.js\n\nThe postsController.js file handles the logic for creating, reading, updating, and deleting posts.\n\n## 2. Middleware: middlewares/methodOverride.js\n\nThe methodOverride.js file sets up method override for handling forms that need to send PATCH and DELETE requests.\n\n## 3. Routes: routes/postsRoutes.js\n\nThe postsRoutes.js file defines each route and maps it to the appropriate controller function.\n\n## 4. Main Server File: app.js\n\nThe app.js file initializes the Express application, configures middleware, sets up views, and mounts the routes.\n\n## Views (EJS Templates)\n\nViews folder contains EJS templates (index.ejs, new.ejs, show.ejs, and edit.ejs).\n\n## Public Folder\n\nIt contains style.css file.\n\nP.s: This setup allows you to serve static assets like CSS and JavaScript files easily.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-din%2Ftwitter_posts_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaisal-din%2Ftwitter_posts_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-din%2Ftwitter_posts_project/lists"}