{"id":18546969,"url":"https://github.com/fabogit/expressjs-mongoose","last_synced_at":"2026-05-07T02:36:52.132Z","repository":{"id":107295285,"uuid":"550874904","full_name":"fabogit/expressjs-mongoose","owner":"fabogit","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-13T13:20:54.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T09:34:46.892Z","etag":null,"topics":["express","mongoose","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fabogit.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":"2022-10-13T13:20:51.000Z","updated_at":"2022-10-13T15:42:48.000Z","dependencies_parsed_at":"2023-05-04T15:35:04.268Z","dependency_job_id":null,"html_url":"https://github.com/fabogit/expressjs-mongoose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2Fexpressjs-mongoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2Fexpressjs-mongoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2Fexpressjs-mongoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2Fexpressjs-mongoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabogit","download_url":"https://codeload.github.com/fabogit/expressjs-mongoose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292067,"owners_count":22046427,"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":["express","mongoose","typescript"],"created_at":"2024-11-06T20:27:40.590Z","updated_at":"2026-05-07T02:36:47.090Z","avatar_url":"https://github.com/fabogit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: ExpressJS Mongoose\ndescription: An ExpressJS server that connects to a MongoDB database\ntags:\n  - express\n  - mongodb\n  - mongoose\n  - typescript\n---\n\n# ExpressJS Mongoose Example\n\nThis example starts an [ExpressJS](https://expressjs.com/) server that connects to a Railway MongoDB database using [MongooseJS](https://mongoosejs.com/)\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/RM1WxR)\n\n## ✨ Features\n\n- Express\n- TypeScript\n- MongoDB with Mongoose\n\n## 💁‍♀️ How to use\n\n- Install dependencies `yarn`\n- Connect to your Railway project `railway link`\n- Start the development server `railway run yarn dev`\n\n## 📝 Notes\n\nThe starter contains a single `Country` model that you can read from and write to.\n\nThere are two main routes on the server:\n\n- A `GET` route - `/countries` which returns all the countries\n- A `POST` route - `/countries` which can be used to add a new country\n\nExample post request to add a new country:\n\n```\ncurl -H \"Content-Type: application/json\" \\\n  --request POST \\\n  -d '{\"name\":\"India\",\"iso2code\":\"IN\"}' \\\n  http://localhost:3333/countries\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabogit%2Fexpressjs-mongoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabogit%2Fexpressjs-mongoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabogit%2Fexpressjs-mongoose/lists"}