{"id":17249315,"url":"https://github.com/leon3s/nxtranet","last_synced_at":"2025-03-26T06:15:01.522Z","repository":{"id":43408284,"uuid":"427423790","full_name":"leon3s/nxtranet","owner":"leon3s","description":"Intranet for fast tests and deploy nodejs application with zero downtime for production","archived":false,"fork":false,"pushed_at":"2022-07-19T09:49:56.000Z","size":2296,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"development","last_synced_at":"2024-12-04T02:25:34.136Z","etag":null,"topics":[],"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/leon3s.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}},"created_at":"2021-11-12T16:21:27.000Z","updated_at":"2022-02-27T14:19:59.000Z","dependencies_parsed_at":"2022-08-31T07:51:54.484Z","dependency_job_id":null,"html_url":"https://github.com/leon3s/nxtranet","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/leon3s%2Fnxtranet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon3s%2Fnxtranet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon3s%2Fnxtranet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leon3s%2Fnxtranet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leon3s","download_url":"https://codeload.github.com/leon3s/nxtranet/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233641282,"owners_count":18707117,"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":[],"created_at":"2024-10-15T06:44:03.998Z","updated_at":"2025-01-12T17:44:17.300Z","avatar_url":"https://github.com/leon3s.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NXTRANET\n\nUnlock control of your network using nxtranet\n\nSetup and configure personal vpn dns and automaticaly test, deploy and scale your nodejs projects.\n\n## State\n\nProject moved to [nanocl](https://github.com/leon3s/nanocl)\n\n## Compatibility\n\nList of system compatible\n- Ubuntu 20.04\n\n## Installation\n\n- Required dependencies\n```sh\nsudo apt install -y nginx nginx-extras dnsmasq docker-compose mongodb # For ubuntu\n```\n- Setup project\n```sh\ngit clone https://github.com/leon3s/nxtranet\ncd nxtranet\nbash node_install.bash # If you don't have nodejs 16.x installed\n# Install cli\ncd ./cli \u0026\u0026 npm install \u0026\u0026 npm run build\nsudo npm install -g .\n# Install project dependencies and config files\nsudo nxtranet install\n# Set services executable perms\nsudo mv ../config/sudoers/nxtsrv /etc/sudoers.d\nsudo chown root:root /etc/sudoers.d/nxtsrv\n```\n\n## Configuration\n- there is an example of configuration you can find in /etc/nxtranet/nxtranet.conf\n```\nnxtranet {\n  host 127.0.0.1; # On which host the domain name will be bind in nginx to access it.\n  domain nxtra.net; # The domain name you want\n}\n\ndocker {\n  host 172.17.0.1; # On which host docker will bind containers\n}\n```\n- Once you edited the file considere running\n```sh\nsudo nxtranet configure # Update generated file with the new configuration\n```\n- Note if you had a running instance of nxtranet considere restarting it.\n\n## Stop\n```sh\nsudo nxtranet stop # Will stop nxtranet and all his services\n```\n\n## Start\n```sh\nsudo nxtranet run dev # Will run nxtranet in development mode\nsudo nxtranet run prod # Will run nxtranet in production mode\n```\n\n## Project structure\n\n/cli # Cli used as internal dev tools\n\n/packages # Shared packages between projects cli and services\n  - /apiclient  # A basic client for api calls\n  - /headers    # Shared types for all projects\n  - /node       # Nodejs library\n  - /service    # Default service helpers\n\n/docker_images # Docker images\n  - /node-deployer # Optimised docker image to deploy node application.\n\n/internal\n  - /docker      # Service to manage docker\n  - /nginx       # Service to manage nginx\n  - /dnsmasq     # Service to manage dnsmasq\n  - /system      # Service to get system information such as disk space\n\n/exposed\n  - /dashboard   # Front end dashboard for configuration\n  - /api         # Backend api\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon3s%2Fnxtranet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleon3s%2Fnxtranet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleon3s%2Fnxtranet/lists"}