{"id":15064713,"url":"https://github.com/devroost/t2","last_synced_at":"2026-01-02T10:53:54.441Z","repository":{"id":252555911,"uuid":"840781487","full_name":"DevRoost/T2","owner":"DevRoost","description":"This repository was created by Flatlogic Platform: https://flatlogic.com/generator ","archived":false,"fork":false,"pushed_at":"2024-08-10T17:02:01.000Z","size":38194,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T10:14:38.319Z","etag":null,"topics":["docker","flatlogic","js","low-code","nginx","nodejs","postgresql","react","tailwind","ts"],"latest_commit_sha":null,"homepage":"https://flatlogic.com/projects/25649","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevRoost.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":"2024-08-10T17:01:51.000Z","updated_at":"2024-08-10T17:02:05.000Z","dependencies_parsed_at":"2024-08-10T18:38:33.474Z","dependency_job_id":null,"html_url":"https://github.com/DevRoost/T2","commit_stats":null,"previous_names":["devroost/t2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRoost%2FT2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRoost%2FT2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRoost%2FT2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevRoost%2FT2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevRoost","download_url":"https://codeload.github.com/DevRoost/T2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"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","flatlogic","js","low-code","nginx","nodejs","postgresql","react","tailwind","ts"],"created_at":"2024-09-25T00:25:40.565Z","updated_at":"2026-01-02T10:53:54.397Z","avatar_url":"https://github.com/DevRoost.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# t2\n\n## This project was generated by [Flatlogic Platform](https://flatlogic.com).\n\n  - Frontend: [React.js](https://flatlogic.com/templates?framework%5B%5D=react\u0026sort=default)\n\n- Backend: [NoBackend](https://flatlogic.com/templates?backend%5B%5D=no-backend\u0026sort=trending)\n\n  -----------------------\n### We offer 2 ways how to start the project locally: by running Frontend and Backend or with Docker.\n-----------------------\n\n## To start the project:\n\n### Frontend:\n\n\u003e Please change current folder: `cd frontend`\n\n## To start the project with Docker:\n### Description:\n\nThe project contains the **docker folder** and the `Dockerfile`.\n\nThe `Dockerfile` is used to Deploy the project to Google Cloud.\n\nThe **docker folder** contains a couple of helper scripts:\n\n- `docker-compose.yml` (all our services: web, backend, db are described here)\n- `start-backend.sh` (starts backend, but only after the database)\n- `wait-for-it.sh` (imported from https://github.com/vishnubob/wait-for-it)\n\n    \u003e To avoid breaking the application, we recommend you don't edit the following files: everything that includes the **docker folder** and `Dokerfile`.\n\n## Run services:\n\n1. Install docker compose (https://docs.docker.com/compose/install/)\n\n2. Move to `docker` folder. All next steps should be done from this folder.\n\n   ``` cd docker ```\n\n3. Make executables from `wait-for-it.sh` and `start-backend.sh`:\n\n   ``` chmod +x start-backend.sh \u0026\u0026 chmod +x wait-for-it.sh ```\n\n4. Download dependend projects for services.\n\n5. Review the docker-compose.yml file. Make sure that all services have Dockerfiles. Only db service doesn't require a Dockerfile.\n\n6. Make sure you have needed ports (see them in `ports`) available on your local machine.\n\n7. Start services:\n\n   7.1. With an empty database `rm -rf data \u0026\u0026 docker-compose up`\n\n   7.2. With a stored (from previus runs) database data `docker-compose up`\n\n8. Check http://localhost:3000\n\n9. Stop services:\n\n   9.1. Just press `Ctr+C`\n\n## Most common errors:\n\n1. `connection refused`\n\n   There could be many reasons, but the most common are:\n\n  - The port is not open on the destination machine.\n\n  - The port is open on the destination machine, but its backlog of pending connections is full.\n\n  - A firewall between the client and server is blocking access (also check local firewalls).\n\n   After checking for firewalls and that the port is open, use telnet to connect to the IP/port to test connectivity. This removes any potential issues from your application.\n\n   ***MacOS:***\n\n   If you suspect that your SSH service might be down, you can run this command to find out:\n\n   `sudo service ssh status`\n\n   If the command line returns a status of down, then you’ve likely found the reason behind your connectivity error.\n\n   ***Ubuntu:***\n\n   Sometimes a connection refused error can also indicate that there is an IP address conflict on your network. You can search for possible IP conflicts by running:\n\n   `arp-scan -I eth0 -l | grep \u003cipaddress\u003e`\n\n   `arp-scan -I eth0 -l | grep \u003cipaddress\u003e`\n\n   and\n\n   `arping \u003cipaddress\u003e`\n\n2. `yarn db:create` creates database with the assembled tables (on MacOS with Postgres database)\n\n   The workaround - put the next commands to your Postgres database terminal:\n\n   `DROP SCHEMA public CASCADE;`\n\n   `CREATE SCHEMA public;`\n\n   `GRANT ALL ON SCHEMA public TO postgres;`\n\n   `GRANT ALL ON SCHEMA public TO public;`\n\n   Afterwards, continue to start your project in the backend directory by running:\n\n   `yarn start`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevroost%2Ft2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevroost%2Ft2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevroost%2Ft2/lists"}