{"id":21698683,"url":"https://github.com/ileriayo/dockerised-usermanager","last_synced_at":"2026-04-13T04:32:40.753Z","repository":{"id":97880325,"uuid":"115226028","full_name":"Ileriayo/Dockerised-Usermanager","owner":"Ileriayo","description":"Deploy NodeJS and MogoDB to Docker Containers","archived":false,"fork":false,"pushed_at":"2019-10-25T10:30:55.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T14:29:06.166Z","etag":null,"topics":["docker","docker-compose","mongodb","nodejs"],"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/Ileriayo.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":"2017-12-23T22:41:49.000Z","updated_at":"2017-12-25T23:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"173315f6-323d-483b-bf90-4d26e6900b9b","html_url":"https://github.com/Ileriayo/Dockerised-Usermanager","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/Ileriayo%2FDockerised-Usermanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ileriayo%2FDockerised-Usermanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ileriayo%2FDockerised-Usermanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ileriayo%2FDockerised-Usermanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ileriayo","download_url":"https://codeload.github.com/Ileriayo/Dockerised-Usermanager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637421,"owners_count":20485509,"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":["docker","docker-compose","mongodb","nodejs"],"created_at":"2024-11-25T19:36:06.305Z","updated_at":"2025-10-12T05:02:59.322Z","avatar_url":"https://github.com/Ileriayo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Dockerised User Manager\n\nThis repository contains a simple demo API built with NodeJS.\nThe API is used to manage users in a MongoDB database.\nBoth the NodeJS API and MongoDB database are deployed to Docker\n\n### Development\nThis application was developed using [ExpressJS](http://expressjs.com/). MongoDB was used for persisting data with [Mongoose](https://mongoosejs.com/) as [ORM](https://en.wikipedia.org/wiki/Object-relational_mapping).\n\n### Setup\n* Ensure that you have `docker`, `docker compose`, `node`, and `mongoDB` installed and running properly on your PC.\n* Open `Docker Quickstart Terminal` to start docker machine.\n* First make a note of the ip that docker is configured to use. You can also use the command `docker-machine ip` to check for the ip.\n* Clone the repository by entering the following command in the terminal.\n`git clone https://github.com/Ileriayo/Dockerised-Usermanager.git`\n* Navigate to the project folder using `cd Dockerised-Usermanager` in the terminal.\n* Run the script in the directory with the command `start Script.sh` .\n* From your browser, navigate to `http://\u003cdocker-machine ip\u003e:3000/users` .\n\n### API Documentation\nThe API only has one endpoint which is the `/users` endpoint for saving users to the database. The endpoint works with the HTTP verbs: `POST`, `GET`, `PUT`, `DELETE`.\n\n###### POST HTTP Request\n-   `POST` /users\n-   INPUT:\n```x-form-url-encoded\nname: John Doe\nemail: john.doe@gmail.com\npassword: johndoe\n```\n\n###### HTTP Response\n\n-   HTTP Status: `201: created`\n-   JSON data\n```json\n{\n  \"_id\": \"59071791b0lkscm2325794\",\n  \"name\": \"John Doe\",\n  \"email\": \"john.doe@gmail.com\",\n  \"password\": \"johndoe\",\n  \"__v\": 0\n}\n```\n\n###### GET HTTP Response\n-   `GET` /users\n\n```json\n[\n    {\n        \"_id\": \"59071791b0lkscm2325794\",\n        \"name\": \"John Doe\",\n        \"email\": \"john.doe@gmail.com\",\n        \"password\": \"johndoe\",\n        \"__v\": 0\n    }\n]\n```\n\n###### GET HTTP Response\n-   `GET` /users/:id\n\n```json\n{\n    \"_id\": \"59071791b0lkscm2325794\",\n    \"name\": \"John Doe\",\n    \"email\": \"john.doe@gmail.com\",\n    \"password\": \"johndoe\",\n    \"__v\": 0\n}\n```\n\n###### DELETE HTTP Response\n-   `DELETE` /users/:id\n\n```json\nUser John Doe was deleted\n```\n\n###### POST HTTP Request\n-   `PUT` /users/:id\n-   INPUT:\n```x-form-url-encoded\nname: Jane Doe\nemail: jane.doe@gmail.com\npassword: janedoe\n```\n\n###### HTTP Response\n\n-   HTTP Status: `200: OK`\n-   JSON data\n```json\n{\n  \"_id\": \"59071791b0lkscm2325794\",\n  \"name\": \"Jane Doe\",\n  \"email\": \"jane.doe@gmail.com\",\n  \"password\": \"janedoe\",\n  \"__v\": 0\n}\n```\n\n\n\n### Author(s)\n**Ileriayo Adebiyi [Docker]** - Software Developer\n\n**Olajide Bolaji 'Nuel [NodeJS API]** - Software Developer at Andela","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fileriayo%2Fdockerised-usermanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fileriayo%2Fdockerised-usermanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fileriayo%2Fdockerised-usermanager/lists"}