{"id":13343933,"url":"https://github.com/filips123/Zero86","last_synced_at":"2025-03-12T06:30:43.500Z","repository":{"id":37693162,"uuid":"180819147","full_name":"filips123/Zero86","owner":"filips123","description":"Decentralized x86 virtualization in ZeroNet","archived":true,"fork":false,"pushed_at":"2022-06-22T05:48:21.000Z","size":1404,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-10-24T16:50:04.737Z","etag":null,"topics":["decentralized","emulation","v86","virtualization","x86","zeronet","zeronet-site","zite"],"latest_commit_sha":null,"homepage":"http://127.0.0.1:43110/1z86z5jCaCQpgabfbQFJTLcKBLJdTtGYD/","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/filips123.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":"2019-04-11T15:17:30.000Z","updated_at":"2023-01-27T23:39:32.000Z","dependencies_parsed_at":"2022-09-12T23:50:26.522Z","dependency_job_id":null,"html_url":"https://github.com/filips123/Zero86","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/filips123%2FZero86","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filips123%2FZero86/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filips123%2FZero86/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filips123%2FZero86/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filips123","download_url":"https://codeload.github.com/filips123/Zero86/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243171453,"owners_count":20247876,"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":["decentralized","emulation","v86","virtualization","x86","zeronet","zeronet-site","zite"],"created_at":"2024-07-29T19:32:07.281Z","updated_at":"2025-03-12T06:30:43.139Z","avatar_url":"https://github.com/filips123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ZeroNet Template\n================\n\nTemplate for creating and developing ZeroNet sites.\n\n## Description\n\nThis project provides a template for creating and developing [ZeroNet][link-zeronet] sites.\n\nIt supports [NPM][link-npm] dependencies and it uses [Gulp][link-gulp] and [Browserify][link-browserify] for bundling scripts. It also supports [SASS][link-sass] and automatic deployments with [Travis CI][link-travis].\n\n## Usage\n\n### Requirements\n\nYou must have [Git][link-git] and [Node.js][link-nodejs] installed on your computer. It is recommended that use the latest versions.\n\nIt is also recommended to also install [Python][link-python] and [ZeroNet][link-zeronet] for easier developing and deploying. Currently, only Python 2.7 is supported but Python 3 version of ZeroNet is in development.\n\n### Start\n\nIf you don't already have your own ZeroNet site, you should create it from ZeroNet. Details are available in [ZeroNet documentation][link-create-site]. You must have a site's address and a private key.\n\nYou can then clone or fork this repository and install dependencies. It already contains an example site and code with [ZeroFrame API][link-zeroframe-api].\n\n```bash\n$ git clone https://github.com/filips123/ZeroTemplate.git my-new-site\n$ cd my-new-site\n$ yarn\n```\n\nYou should commit changes to `develop` branch.\n\n### Development\n\n#### Site dependencies and details\n\nYou should edit `package.json` to provide your own information and dependencies needed for your site.\n\nIt is also recommended to update `README.md` to provide information about your site. You can then edit the files and add your own code.\n\n#### ZeroNet files\n\nEach site must have valid `src/content.json`. Details about are it availible in [ZeroNet documentation][link-content-json].\n\nYou should copy `address` and `signers_sign` (and other keys related with addressed and signatures) from original `content.json` that was generated at site creation.\n\nIt is recommended that it doesn't contain `modified`, `files`, `files_optional` and `signs` because they will be auto-generated on each `siteSign`.\n\n#### Other files\n\nThe site is contained in `src/` directory.\n\nScripts are stored in `src/js/` and each site must contain the main script (`src/js/index.js`). Styles are stored in `src/css/` and `src/sass`.\n\nIt is recommended that scripts follow Standard style. You can run linting with `yarn lint`. \n\nYour `index.html` (or any other HTML file) should include JS from `js/all.js?lang={lang}\u0026site_modified={site_modified}` and CSS from `css/all.css?site_modified={site_modified}`. Additional query parameters will ensure that the files will be correctly updated.\n\n### Deploying\n\n#### Manual deployment\n\nYou can build the site with `yarn build`. This will bundle all scripts and styles and copy static files to `dist/`. You can then copy that directory to your site directory in ZeroNet, sign the changes and publish them.\n\n#### Automatic deployment\n\nAfter you finish your changes, you can run `yarn deploy`. This will automatically build, sign and publish your site which may take a few minutes.\n\nLocal Python copy of ZeroNet is required for this task. You must set a path to it (location of `zeronet.py` file) with `--zeronet`  argument.\n\n```bash\n$ yarn deploy --zeronet=/path/to/zeronet\n```\n\nDuring deploy, you will be asked for your site's private key. You must enter it to finish deploy.\n\nYou can also specify your private key with `--privkey` argument. Note that your private key will then be visible in command's output.\n\n```bash\n$ yarn deploy --zeronet=/path/to/zeronet --privkey=sEcReTkEy\n```\n\n#### Continuous deployment\n\nYou can also use continuous deployment with Travis CI.\n\nDuring development, any changes must be committed to `develop` branch. When you want to release them, you will just have to merge it into `master` and publish the changes. Travis CI will then automatically install ZeroNet, sign the changes and publish your site.\n\nTo make this working, you will have to (securely) set `ZERONET_PRIVKEY` environment variable in Travis CI. It must contain your private key.\n\n[link-zeronet]: https://zeronet.io/\n[link-git]: https://git-scm.com/\n[link-python]: https://www.python.org/\n[link-nodejs]: https://nodejs.org/\n[link-npm]: https://www.npmjs.com/\n[link-gulp]: https://gulpjs.com/\n[link-browserify]: http://browserify.org/\n[link-sass]: https://sass-lang.com/\n[link-travis]: https://travis-ci.com/\n\n[link-create-site]: https://zeronet.io/docs/using_zeronet/create_new_site/\n[link-zeroframe-api]: https://zeronet.io/docs/site_development/zeroframe_api_reference/\n[link-content-json]: https://zeronet.io/docs/site_development/content_json/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilips123%2FZero86","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilips123%2FZero86","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilips123%2FZero86/lists"}