{"id":18822979,"url":"https://github.com/morzhanov/nodejs-reverse-proxy-example","last_synced_at":"2026-03-10T06:03:13.858Z","repository":{"id":122681707,"uuid":"152736143","full_name":"morzhanov/nodejs-reverse-proxy-example","owner":"morzhanov","description":"Simple reverse-proxy server based on Nginx NodeJS and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2018-10-15T15:42:44.000Z","size":66,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T01:36:00.480Z","etag":null,"topics":["awilix","awilix-koa","babel","docker","docker-compose","jsonwebtoken","jwt","koa2","nginx","nginx-proxy","nodejs","postgresql","reverse-proxy","typeorm"],"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/morzhanov.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":"2018-10-12T10:43:26.000Z","updated_at":"2020-08-29T20:58:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"940162ae-e398-4b95-af50-d3f6950aa833","html_url":"https://github.com/morzhanov/nodejs-reverse-proxy-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morzhanov/nodejs-reverse-proxy-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Fnodejs-reverse-proxy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Fnodejs-reverse-proxy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Fnodejs-reverse-proxy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Fnodejs-reverse-proxy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morzhanov","download_url":"https://codeload.github.com/morzhanov/nodejs-reverse-proxy-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Fnodejs-reverse-proxy-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["awilix","awilix-koa","babel","docker","docker-compose","jsonwebtoken","jwt","koa2","nginx","nginx-proxy","nodejs","postgresql","reverse-proxy","typeorm"],"created_at":"2024-11-08T00:52:17.604Z","updated_at":"2026-03-10T06:03:13.836Z","avatar_url":"https://github.com/morzhanov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS reverse-proxy example\n\n\u003cimg src=\"https://i.imgur.com/RVpDC4x.png\"/\u003e\n\nSimple \u003ca href=\"https://www.nginx.com/resources/glossary/reverse-proxy-server/\"\u003ereverse-proxy\u003c/a\u003e server based on Nginx NodeJS and PostgreSQL.\n\nNodeJS part of this project is based on \u003ca href=\"https://github.com/morzhanov/nodejs-koa-boilerplate\"\u003enodejs-koa-boilerplate\u003c/a\u003e\n\n## Installation\n\nUse these steps to install project\n\n1. Install Docker: https://www.docker.com/\n2. Build project: `docker-compose build`\n3. Run docker-compose: `docker-compose up -d`\n4. Stop containers: `docker-compose down`\n\nFor local development (NodeJS) pass variables in .env file and use local PostgreSQL database (you can use official \u003ca href=\"https://hub.docker.com/_/postgres/\"\u003eDocker\u003c/a\u003e container).\n\n## NodeJS project folders structure\n\nThis boilerplate contains such folders:\n\n- \u003cb\u003e/src \u003c/b\u003e - main sources folder.\n- \u003cb\u003e/src/constants \u003c/b\u003e - app constants.\n- \u003cb\u003e/src/controllers \u003c/b\u003e - contain controllers that receives requests from routes, executes business logic via services and returns responses to client.\n- \u003cb\u003e/src/db \u003c/b\u003e - contain scripts to setup and manage database\n- \u003cb\u003e/src/middleware \u003c/b\u003e - app middlewares\n- \u003cb\u003e/src/entities \u003c/b\u003e - database entities\n- \u003cb\u003e/src/services \u003c/b\u003e - services contains logic to manage database, execute requests to other servers, change application behabior, and etc.\n- \u003cb\u003e/src/app.js \u003c/b\u003e - app configuration\n- \u003cb\u003e/src/index.js \u003c/b\u003e - contain main scripts that configures and run server\n- \u003cb\u003e/test \u003c/b\u003e - contains tests for controllers, services and other parts of application.\n\n## NodeJS project scripts\n\n- start - run dev server using nodemon\n- build - build project\n- serve - run built files\n\n## Main Technologies and libraries\n\n- \u003ca href=\"https://www.docker.com/\"\u003eDocker\u003c/a\u003e\n- \u003ca href=\"https://nodejs.org/en/\"\u003eNodeJS\u003c/a\u003e\n- \u003ca href=\"https://www.nginx.com/\"\u003eNginx\u003c/a\u003e\n- \u003ca href=\"https://www.postgresql.org/\"\u003ePostgreSQL\u003c/a\u003e\n- \u003ca href=\"https://koajs.com/#\"\u003eKoaJS\u003c/a\u003e\n- \u003ca href=\"https://babeljs.io/\"\u003eBabel\u003c/a\u003e\n- \u003ca href=\"https://github.com/auth0/node-jsonwebtoken\"\u003ejsonwebtoken\u003c/a\u003e\n- \u003ca href=\"https://github.com/typeorm/typeorm\"\u003etypeorm\u003c/a\u003e\n- \u003ca href=\"https://github.com/jeffijoe/awilix\"\u003eawilix\u003c/a\u003e\n- \u003ca href=\"https://github.com/jeffijoe/awilix-koa\"\u003eawilix-koa\u003c/a\u003e\n- \u003ca href=\"https://github.com/koajs/bodyparser\"\u003ekoa-bodyparser\u003c/a\u003e\n- \u003ca href=\"https://github.com/varunpal/koa-cookie\"\u003ekoa-cookie\u003c/a\u003e\n- \u003ca href=\"https://github.com/alexmingoia/koa-router\"\u003ekoa-router\u003c/a\u003e\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\nVlad Morzhanov\n\n## License\n\n#### (The MIT License)\n\nCopyright (c) 2018 Vlad Morzhanov.\nYou can review license in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorzhanov%2Fnodejs-reverse-proxy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorzhanov%2Fnodejs-reverse-proxy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorzhanov%2Fnodejs-reverse-proxy-example/lists"}