{"id":15392251,"url":"https://github.com/vtereshyn/realty","last_synced_at":"2025-04-09T04:40:34.023Z","repository":{"id":98379632,"uuid":"403888210","full_name":"vtereshyn/realty","owner":"vtereshyn","description":"Web and mobile application for renting an apartment","archived":false,"fork":false,"pushed_at":"2021-09-08T18:55:58.000Z","size":406,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T22:52:31.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vtereshyn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-07T07:45:09.000Z","updated_at":"2023-03-17T12:43:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"39b8a052-f772-40a5-a975-5d7bce41b34d","html_url":"https://github.com/vtereshyn/realty","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"21312179083ee9fa298a3bb94b009ca3f600f430"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtereshyn%2Frealty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtereshyn%2Frealty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtereshyn%2Frealty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtereshyn%2Frealty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtereshyn","download_url":"https://codeload.github.com/vtereshyn/realty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980826,"owners_count":21027803,"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-01T15:14:22.016Z","updated_at":"2025-04-09T04:40:33.988Z","avatar_url":"https://github.com/vtereshyn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web and mobile app for renting apartments\n\nThis is pet project implemented using React, Nest JS, GraphQL, SQL. There is a plan to create a mobile version using React Native.\n\n## Setup\n\n## Local development\n\nInstall dependencies\n\n```ssh\nyarn\n```\n\n#### Create .env file in both *client* and *server*\n\n*Client*:\n\n```ssh\nREACT_APP_API_URL=http://localhost:3000/graphql\nREACT_APP_GOOGLE_MAP_API_KEY=\n```\n\n*Server*:\n\n```ssh\nDB_USERNAME=\nDB_PASSWORD=\n\nJWT_SECRET=\nUNSPLASH_ACCESS_KEY=\nUNSPLASH_SECRET_KEY=\n\nGOOGLE_MAP_API_KEY=\n```\n\n#### Build\n\nBuild server\n\n```ssh\nyarn build:server\n```\n\nRun Docker\n\n```ssh\nyarn docker:start\n```\n\nRun database migrations (needed only for first running or if entities have been changed)\n\n```ssh\nyarn db:migrate\n```\n\n#### Start application\n\nRun server and client separately\n\n```ssh\nyarn start:client\nyarn start:server\n```\n\nor run both at the same time\n\n```ssh\nyarn start\n```\n\nSeed data for testing (needed only for first running)\n\n```ssh\nyarn db:seed\n```\n\n### GraphQL\n\nDuring development you might want to change your *schema.graphql* file to apply implented queries and mutations. To fetch the latest changes from that schema file to client simply run\n\n```ssh\nyarn gql:generate\n```\n\nThis command will fetch all Typescript types that needed for development and also will generate hooks for GraphQL queries and mutations\n\n### Linting\n\nTo run eslint do\n\n```ssh\nyarn lint\n```\n\nThis command will fix possible lint issue and will create a report with errors and warning that were found.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtereshyn%2Frealty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtereshyn%2Frealty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtereshyn%2Frealty/lists"}