{"id":24129500,"url":"https://github.com/luandro/buy-land-back","last_synced_at":"2026-01-08T09:53:20.124Z","repository":{"id":250496718,"uuid":"834624478","full_name":"luandro/buy-land-back","owner":"luandro","description":"Join us in creating a sustainable future by investing in community-owned lands and ensuring their return to indigenous peoples.","archived":false,"fork":false,"pushed_at":"2024-07-31T23:29:19.000Z","size":60706,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T02:13:32.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://luandro.github.io/buy-land-back/","language":"JavaScript","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/luandro.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":"2024-07-27T21:03:02.000Z","updated_at":"2024-07-31T23:28:44.000Z","dependencies_parsed_at":"2025-01-11T19:44:57.685Z","dependency_job_id":null,"html_url":"https://github.com/luandro/buy-land-back","commit_stats":null,"previous_names":["luandro/buy-land-back"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luandro/buy-land-back","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fbuy-land-back","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fbuy-land-back/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fbuy-land-back/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fbuy-land-back/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luandro","download_url":"https://codeload.github.com/luandro/buy-land-back/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luandro%2Fbuy-land-back/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275844371,"owners_count":25538991,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-11T19:33:09.957Z","updated_at":"2025-09-18T22:32:53.290Z","avatar_url":"https://github.com/luandro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buy Land Back Website\n\nThis toolkit is designed to help you get started with the Buy Land Back project, which aims to create a sustainable alternative to traditional capitalistic practices in land and housing ownership. The project utilizes innovative crowdfunding strategies to finance the acquisition and development of land and housing units, ultimately returning the land to indigenous communities.\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in your browser.\n\nThe page will reload when you make changes.\\\nYou may also see any lint errors in the console.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\n### `npm run content`\n\nThe `npm run content` command is used to update the `translation.en.json` file with the latest content from a Notion database. This script fetches data from the Notion database, processes it, and updates the `translation.en.json` file located in the `src/assets/i18n` directory.\n\nTo run this command, ensure you have the necessary environment variables set up:\n\n- `NOTION_API_KEY`: Your Notion API key.\n- `DATABASE_ID`: The ID of the Notion database you want to fetch data from.\n\nOnce these environment variables are configured, you can run the command:\n\n### `npm run translate`\n\nThe `npm run translate` command is used to automatically translate the `translation.en.json` file into Portuguese and Spanish using [jsontt](https://github.com/mololab/json-translator) which defaults to using free Google Translate. This script processes the English translations and generates corresponding translations in Portuguese and Spanish, saving them as `translation.pt.json` and `translation.es.json` respectively in the `src/assets/i18n` directory.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can't go back!**\n\nIf you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc.) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point, you're on your own.\n\nYou don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However, we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.\n\n### Deployment\n\nThe project is configured to automatically deploy to GitHub Pages when changes are pushed to the `main` branch. The deployment process is managed using a GitHub Actions workflow defined in `.github/workflows/deploy.yml`.\n\nTo manually trigger a deployment, you can push changes to the `main` branch, and the workflow will handle the rest.\n\n### `npm run build` fails to minify\n\nIf the `npm run build` command fails to minify, refer to the [troubleshooting guide](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) for solutions.\n\n## Working with Notion\n\nTo update the `translation.en.json` file with data from a Notion database, follow these steps:\n\n1. Ensure you have Node.js installed on your machine.\n2. Obtain a Notion API key and Database ID.\n\n### Steps to Update `translation.en.json`\n\n1. Set your Notion API key and Database ID as environment variables and run the update command:\n   ```sh\n   NOTION_API_KEY=secret_xxx DATABASE_ID=xxx-xxx-xx npm run content\n   ```\n   Replace `secret_xxx` with your actual Notion API key and `xxx-xxx-xx` with your actual Database ID.\n\n2. The script `populate_en_json_notion_sdk.js` will fetch data from the specified Notion database and update the `translation.en.json` file located in `src/assets/i18n/`.\n\n3. The script will also create a backup of the current `translation.en.json` file with a timestamp before updating it.\n\nBy following these steps, you can ensure that your `translation.en.json` file is always up-to-date with the latest content from your Notion database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluandro%2Fbuy-land-back","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluandro%2Fbuy-land-back","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluandro%2Fbuy-land-back/lists"}