{"id":15002593,"url":"https://github.com/noxtrah/msn-api-web-project","last_synced_at":"2026-04-02T01:53:27.232Z","repository":{"id":241916624,"uuid":"803909470","full_name":"Noxtrah/MSN-API-Web-Project","owner":"Noxtrah","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-15T16:31:41.000Z","size":9290,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T12:16:27.741Z","etag":null,"topics":["bcrypt","express","google-authentication","javascript","jwt-authentication","mssql","nodejs","oauth2-authentication","passport-oauth2-google","restful-api","websocket"],"latest_commit_sha":null,"homepage":"","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/Noxtrah.png","metadata":{"files":{"readme":"README","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-05-21T15:35:43.000Z","updated_at":"2024-06-15T16:31:44.000Z","dependencies_parsed_at":"2024-06-08T14:57:56.874Z","dependency_job_id":"86cbc9b1-39af-4e7e-b879-96b12d0e25c2","html_url":"https://github.com/Noxtrah/MSN-API-Web-Project","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"3eec4505daf289692001271c3235dda3ffd8c20b"},"previous_names":["noxtrah/msn-api-web-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noxtrah%2FMSN-API-Web-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noxtrah%2FMSN-API-Web-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noxtrah%2FMSN-API-Web-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noxtrah%2FMSN-API-Web-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Noxtrah","download_url":"https://codeload.github.com/Noxtrah/MSN-API-Web-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243146951,"owners_count":20243742,"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":["bcrypt","express","google-authentication","javascript","jwt-authentication","mssql","nodejs","oauth2-authentication","passport-oauth2-google","restful-api","websocket"],"created_at":"2024-09-24T18:51:19.357Z","updated_at":"2025-12-26T04:50:25.860Z","avatar_url":"https://github.com/Noxtrah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Video Link:\nhttps://drive.google.com/file/d/120V2Jf1965VRLTQXZGuF0l0pDfg3VpYm/view?usp=sharing\n\nBackend Deployment Link:\nhttps://msn-api-web-project.onrender.com\n\nFrontend Deployment Link:\nhttps://news-web-project.vercel.app\n\n\nNotes:\n-After clicking on a news, you will be directed to the news detail page. Changing the language you make here will not change the content of the news in detail page.\nBecause I'm not making a new fetch call on that page.\n-I may not have translated some words I missed.\n-After like or dislike a news, if users refresh the page they can't see their like or dislike until go back to dashboard and enter to the same news detail page.\nThis is because I don't make a news fetch call in detailPages, I just use the data from the url which is filled in the dashboard. When users liked/disliked without refreshing\nthe page they can see changes because of I increase it in client-side temporarily. The reason why the news fetch calls is not used on detail pages is to reduce the number of requests and db usage. (I use paid db)\n-Users might see an error flag at the bottom left when switched the language to the turkish. It is becuase pre-render ability of react. Some html element rendered in english\ninitially and doesn't match when switched to turkish. This error doesn't affect the user experience. For now I haven't found a way to hide/fix the error\n\n\n\n\nBrief Description:\n1-) There are two type of sign-in. Local sign-in or Google sign-in.\n    - For local, I used bcrypt to hash passwords before storing in db. If login is sucessful, JWT will be generated and given to the user.\n    - For google, I used Gooogle-OAuth2 by Passport.js. If sign-in is successful, info come from Google stored in the url and used in necessary pages.\n\n2-) In the header there is a cog-icon next to profile-icon. If clicked, you will see two language options.\n    -Changing language will change the text in the code. (I might have forgotten to translate some words)\n    -Changing language will change the target table in some functions.(News or NewsTR).\n\n3-) At the rightmost of header there is a notification-icon. It will display top 5 latest news. The latest news data will come from a websocket server. Thus, when a new news is uploaded, the user can see it at any time. Clicking on it will take you to the news detail page.\n\n4-) In the middle of header there is a searchbar. User can type anything. If search with a empty input user will still directed to the new tab, probably see nothing. (If a record with empty title or description is found, it can be displayed. I don't have a record with empty title or description for now.)\n\n5-) Under the header there is a navbar. You can see categories at here. Selecting a category will call a fetch to change the content.\n\n6-) In news detail page user can like/dislike news. The likes will stored in a table named contentInteractions. I am using this table for recommendation system.\n\n7-) In news detail page users can see recommended news for them. It is not a item-based recommend, it is user-based. For example if userA liked some news about technology, in the recommendations section, user will see a list of news about technology. If a user didn't liked any news, they will see top ten most liked news in the recommendations section.\n\n8-) Every Page is responsive.\n\n9-) This project has two repositories in GitHub. One for client-side and one for server-side. This project is server-side.\n\n10-) In backend I used Node.js and Express.js as framwork. I used MSSQL as database. And some libraries about passport.js, bcrypt, websocket, and so on.\n\n11-) In frontend I used JavaScript, TypeScript, CSS. As libraries I used React.js, TailwindCSS, i18next, and so on. As framework I used Next.js.\n\n12-) I have four database tables. Users, News, NewsTR and ContentInteractions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoxtrah%2Fmsn-api-web-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoxtrah%2Fmsn-api-web-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoxtrah%2Fmsn-api-web-project/lists"}