{"id":19641870,"url":"https://github.com/iamdipankarpaul/post-api-fastify-mongo","last_synced_at":"2026-04-10T07:18:32.077Z","repository":{"id":248492349,"uuid":"704470787","full_name":"iamdipankarpaul/post-api-fastify-mongo","owner":"iamdipankarpaul","description":"It is a simple api that I built for practicing CURD operations.","archived":false,"fork":false,"pushed_at":"2023-10-13T10:24:13.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T19:47:57.793Z","etag":null,"topics":["dotenv","fastify","java","mongodb","mongodb-atlas","mongoose","nodejs","nodemon","pino"],"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/iamdipankarpaul.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":"2023-10-13T10:24:08.000Z","updated_at":"2023-10-13T10:26:18.000Z","dependencies_parsed_at":"2024-07-15T10:30:49.019Z","dependency_job_id":null,"html_url":"https://github.com/iamdipankarpaul/post-api-fastify-mongo","commit_stats":null,"previous_names":["iamdipankarpaul/post-api-fastify-mongo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdipankarpaul%2Fpost-api-fastify-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdipankarpaul%2Fpost-api-fastify-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdipankarpaul%2Fpost-api-fastify-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdipankarpaul%2Fpost-api-fastify-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamdipankarpaul","download_url":"https://codeload.github.com/iamdipankarpaul/post-api-fastify-mongo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240947659,"owners_count":19883031,"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":["dotenv","fastify","java","mongodb","mongodb-atlas","mongoose","nodejs","nodemon","pino"],"created_at":"2024-11-11T14:10:44.854Z","updated_at":"2026-04-10T07:18:27.048Z","avatar_url":"https://github.com/iamdipankarpaul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple post api using fastify, mongodb_atlas and mongoose\n\nIt is a simple api that I built for practicing CURD operations, but if you still want to try it out, then follow the steps mentioned below 👇\n\n## Installation \u0026 Usage\n\n- Fork the repository in your account in Github.\n- Make project directory and go inside the directory.\n- Clone the repository.\n- Install dependencies.\n- Start or run your API on the local machine.\n\n```shell\n# Make a directory\nmkdir posts-api-fastify-mongoose\n\n# go inside the directory\ncd posts-api-fastify-mongoose\n\n# Clone the repo\ngit clone https://github.com/...(repo url)\n\n# Install dependencies\nnpm install\n\n# Start the API\nnpm start\n\n# Access the API in your web browser\nhttp://localhost:5000/posts\n```\n\n## Endpoints\n\n### GET method\n\n```shell\n# Get all the posts\nlocalhost:5000/posts\n\n# Get a single post\nlocalhost:5000/posts/:postId\n```\n\n### POST method\n\n```shell\n# Add a new post\nlocalhost:5000/posts\n```\n\n### PATCH method\n\n```shell\n# Update a single post\nlocalhost:5000/posts/:postId\n```\n\n### DELETE method\n\n```shell\n# Uelete a single post\nlocalhost:5000/posts/:postId\n```\n\n## Dependencies\n\nHere are some of the major dependencies I have used in this project:\n\n```json\n  \"dependencies\": {\n    \"dotenv\": \"^16.3.1\",\n    \"fastify\": \"^4.24.0\",\n    \"mongoose\": \"^7.6.1\"\n  },\n  \"devDependencies\": {\n    \"nodemon\": \"^3.0.1\",\n    \"pino-pretty\": \"^10.2.3\"\n  }\n```\n\n## Author\n\nDipankar Paul 😊 | Contact me 👉 dipankarpaul2k@gmail.com \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdipankarpaul%2Fpost-api-fastify-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamdipankarpaul%2Fpost-api-fastify-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdipankarpaul%2Fpost-api-fastify-mongo/lists"}