{"id":26251305,"url":"https://github.com/esron/systranca-server","last_synced_at":"2025-04-24T04:49:53.326Z","repository":{"id":42126226,"uuid":"179889249","full_name":"esron/systranca-server","owner":"esron","description":"RESTful API server for a home automation controller server built in Express","archived":false,"fork":false,"pushed_at":"2024-06-18T06:24:15.000Z","size":2533,"stargazers_count":13,"open_issues_count":5,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T04:49:46.970Z","etag":null,"topics":["express-validator","expressjs","hacktoberfest","home-security","internet-of-things"],"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/esron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-04-06T21:36:16.000Z","updated_at":"2023-03-27T11:44:08.000Z","dependencies_parsed_at":"2023-02-17T08:30:59.506Z","dependency_job_id":"b5738d89-188a-4f0b-b352-dd45b6dbfc84","html_url":"https://github.com/esron/systranca-server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fsystranca-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fsystranca-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fsystranca-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fsystranca-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esron","download_url":"https://codeload.github.com/esron/systranca-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566446,"owners_count":21451230,"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-validator","expressjs","hacktoberfest","home-security","internet-of-things"],"created_at":"2025-03-13T16:52:18.522Z","updated_at":"2025-04-24T04:49:53.307Z","avatar_url":"https://github.com/esron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SysTranca Server Project\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Build Status](https://travis-ci.com/esron/systranca-server.svg?branch=master)](https://travis-ci.com/esron/systranca-server)\n[![CodeQL](https://github.com/esron/systranca-server/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/esron/systranca-server/actions/workflows/codeql-analysis.yml)\n\nThis project was born when I came too early at my work building. We are a small startup on Vale do São Francisco, Brazil.\n\nThe objective of this project is provide an API with authentication and authorization for users to login into a home automation server that can, for now, open a electronic lock.\n\n# Instructions\n\nThis project uses [MongoDB](https://www.mongodb.com/) as database through the [Mongoose](https://mongoosejs.com/) library.\n\nInstall the dependencies:\n\n```bash\nnpm install\n```\n\nCopy the `.env.example` file to `.env`:\n\n```bash\ncp .env.example .env\n```\n\nUpdate the variables to correspond your environment.\n\nGenerate the RSA keys:\n\n```bash\nnpm run key:generate\n```\n\nor\n\n```bash\nnode keys.js\n```\n\n-----\n\n### Docker SetUp\n\nYou will also need a MongoDb instance and a MQTT broker.\n\nThis project comes with a `docker-compose.ym` file to help you deploy that locally, just:\n\n```bash\ndocker-compose up\n```\n\nIf you see this error when to execute node container:\n```bash\nInternal watch failed: ENOSPC: System limit for number of file watchers reached, watch '/home/node/app/README.md'\n```\nexecute this to fix it:\n```bash\nsudo sysctl fs.inotify.max_user_watches=582222 \u0026\u0026 sudo sysctl -p\n```\n\nCreate the super user\n\n```bash\ndocker-compose exec app node initDatabase.js\n```\n\nThis project doesn't have a front-end, yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesron%2Fsystranca-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesron%2Fsystranca-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesron%2Fsystranca-server/lists"}