{"id":21725204,"url":"https://github.com/surojcodes/fotopot","last_synced_at":"2026-04-13T14:31:36.444Z","repository":{"id":42796857,"uuid":"270941061","full_name":"surojcodes/fotopot","owner":"surojcodes","description":"REST API using Node.js (Express) and MongoDB (mongoose) for a photo sharing social app","archived":false,"fork":false,"pushed_at":"2022-12-22T16:55:26.000Z","size":7023,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T22:51:01.473Z","etag":null,"topics":["es6-javascript","expressjs","mongodb","mongoose","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"https://surojmaharjan0.github.io/fotopot/","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/surojcodes.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":"2020-06-09T08:06:56.000Z","updated_at":"2023-09-30T23:38:16.000Z","dependencies_parsed_at":"2023-01-30T14:16:03.536Z","dependency_job_id":null,"html_url":"https://github.com/surojcodes/fotopot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/surojcodes/fotopot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Ffotopot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Ffotopot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Ffotopot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Ffotopot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surojcodes","download_url":"https://codeload.github.com/surojcodes/fotopot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surojcodes%2Ffotopot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["es6-javascript","expressjs","mongodb","mongoose","nodejs","rest-api"],"created_at":"2024-11-26T03:16:28.851Z","updated_at":"2026-04-13T14:31:36.424Z","avatar_url":"https://github.com/surojcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fotopot\n\u003e REST API using Node.js (Express) and MongoDB (mongoose) for a photo sharing social app\n\n## Usage\nRename config/config.env.env to config/config.env and update the settings values of your own\n\n## Install Dependencies\n```\nnpm install\n```\n\n## Run App\n```\n# In development mode\nnpm run dev\n\n#In production mode\nnpm start\n```\n\n## Database Seeder\nTo seed your database with the data in data folder, run\n\n```\n# To import data\nnode seeder -i\n\n# To delete data\nnode seeder -d\n```\n***\n## Features\n#### Auth\n* User Registration with email verification\n* Request Resending email verification\n* Login and Logout (JWT Authentication)\n* Reset Password via email\n* Upload profile Image \n* View own profile\n        \n#### Post\n* A post primarily contains image, caption and tags for image\n* User (verified or unverified) is able to see all the posts from all users (with pagination) latest first (sorting field and order can be given as query)\n* A verified user (email verified) can \n  * create posts.\n  * add image to post.\n  * view all of his/her post.\n  * view any other user's post.\n  * update his/her post.\n  * delete his/her post. (*Admin can delete any user's post*)\n  **Deleting post will delete the associated image and all the comments**\n* A verified user can like/unlike a post.\n* A verified user can \n  * comment on post.\n  * view all the comments in the post.\n  * update his/her comment. (*comment will be marked edited*)\n  * delete his/comment. (*Admin can delete any user's comment*)\n  * like/unlike comment on post.\n\n#### User\n* A verified user can see his/her profile\n* A verified user can see other user's users profile and posts\n* A verified user can update his/her detail\n* A verified user can delete his/her account.  (*Admin can delete any user's account*)\n  **Deleting user will delete his profile image, his posts, image of the post and the comments on the posts**\n\n#### Admin\n* A normal user (publisher) can not update his/her role as admin\n* An admin must be made by changing the database field manually\n* An admin can view all users\n* An admin can delete any user account\n* An admin can delete any comment of any user\n* An admin can delete any post.\n    *Delete privilege is given to admin, so that fotopot members follow the app's code of conduct*\n\n#### Security Features\n* NoSQL injection secure\n* Security headers has been added\n* Cross-site scripting(XSS) secure\n* Rate Limit has been set\n  * An IP can request upto 100 times within 10 min\n* Cross-Origin Resource Sharing (CORS) enabled\n* HTTP Param Pollution prevented\n\n***\n## Demo\nSimple Documentation with example[here](https://surojmaharjan0.github.io/fotopot/)\nPostman Documentation with example [here](https://documenter.getpostman.com/view/7716156/SzzegfAC)\n* Version **1.0**\n* Author **Suroj Maharjan**\n\n*If you find any bugs please let me know :)*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurojcodes%2Ffotopot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurojcodes%2Ffotopot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurojcodes%2Ffotopot/lists"}