{"id":21413119,"url":"https://github.com/rixrix/dangx","last_synced_at":"2025-07-08T05:08:10.247Z","repository":{"id":66584615,"uuid":"84813299","full_name":"rixrix/dangx","owner":"rixrix","description":"DangX: Docker + Alpine Linux + NodeJS API + Nginx Reverse Proxy Server","archived":false,"fork":false,"pushed_at":"2017-07-28T02:10:54.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T05:15:26.720Z","etag":null,"topics":["alpine-linux","api","docker","nginx","nginx-proxy","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rixrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-13T10:22:48.000Z","updated_at":"2017-07-27T04:39:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"69db2ed7-df9e-4950-bec1-936aecdcddf8","html_url":"https://github.com/rixrix/dangx","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/rixrix%2Fdangx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fdangx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fdangx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rixrix%2Fdangx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rixrix","download_url":"https://codeload.github.com/rixrix/dangx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910762,"owners_count":20367544,"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":["alpine-linux","api","docker","nginx","nginx-proxy","nodejs"],"created_at":"2024-11-22T18:16:54.283Z","updated_at":"2025-03-16T18:22:56.724Z","avatar_url":"https://github.com/rixrix.png","language":"JavaScript","readme":"# DangX\n\nThis is a simple configuration of running a Node.JS API behind Nginx.\n\n```\n             Docker Container\n+---------------------------------------------------+\n|                                                   |\n|        ^     +                                    |\n|        |     |  :8080                             |\n|        +     v                                    |\n|                                                   |\n|  +-------------------+        +----------------+  |\n|  |                   | :8081  |                |  |\n|  |                   |  +---\u003e |                |  |\n|  |    Nginx          |        |   Node.JS      |  |\n|  |                   |        |                |  |\n|  |                   |  \u003c---+ |                |  |\n|  +-------------------+        +----------------+  |\n|                                                   |\n|                                                   |\n+---------------------------------------------------+\n```\n\n## Technologies\n\n* Docker\n* Alpine Linux\n* Node.JS\n* Nginx\n* pm2\n\n## The Setup\n\n* [Alpine](https://alpinelinux.org/) Linux as the main OS\n* Node.JS is listening from port `8081`\n* Nginx is configured as a Web Server and Reverse Proxy Server\n  * Web Server\n    * listen at port `8080`\n    * http://localhost:8080\n  * Reverse Proxy Server\n    * proxy all requests to `/api/xxx`\n    * eg:\n      * http://localhost/api/user/list\n      * http://localhost/api/dashboard/list\n* Mounted Folder\n  * routes, models, *.js are mounted onto the container except for some other files/folders, see .dockerignore\n* pm2 manages Node.JS server in `watch` mode. Changes to *.js files triggers a server restart\n\n## Commands\n\n* $ docker-compose up            # starts the container\n* $ docker-compose up --build    # rebuild the image\n\n## References\n\n* https://www.nginx.com/resources/admin-guide/reverse-proxy/\n* https://docs.docker.com/compose/overview/\n* https://alpinelinux.org/about/\n* https://docs.docker.com/engine/reference/builder/\n* https://docs.docker.com/engine/reference/commandline/docker/\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Fdangx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frixrix%2Fdangx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frixrix%2Fdangx/lists"}