Giter VIP home page Giter VIP logo

zeronet-react's Introduction

ZeroNet/React starter kit

JavaScript Style Guide

Join the chat at https://gitter.im/rllola/zeronet-react

This is an attempt to simplify ZeroNet website creation for react developer. So we can do more cool things !

Note: I am not a react developer. I am discovering the library while starting this project. Feel free to improve the react code.

Start

Create zeronet website and save keys !

Need to add instructions to secure keys.

Start zeronet and access your address (keep it secret it will be your dev environnement).

Add example project

Clone from github the example project

npm install

Start gulp

We need to recreate the bundle.js file when one of our project file is modified.

gulp

Setup

ZeroFrame module allow you to send query to the server to get database information.

First you need to create your dbschema.json and data/users/content.json file. See tutorial : http://127.0.0.1:43110/Blog.ZeroNetwork.bit/?Post:46:ZeroNet+site+development+tutorial+2

You can also check the doc : https://zeronet.readthedocs.io/en/latest/site_development/dbschema_json/

You will also need to modify your root content.json file.

AND DONT FORGET TO SIGN YOUR data/users/content.json (YES, I HAVE LOST MANY HOURS BECAUSE I FORGOT TO DO IT).

Then you can use ZeroFrame API : https://zeronet.readthedocs.io/en/latest/site_development/zeroframe_api_reference/

This API is not only for database queries. See documentation for more information.

NOTES

Local Storage

Warning: [history] Unable to save state; sessionStorage is not available due to security settings

This bug comes from a react-router dependency ReactTraining/history trying to access the sessionStorage. The only way I can currently think to fix this is to fork the repository and map it through a different namespace as Chrome currently bans anything to do with sessionStorage; even the attempt to override it.

zeronet-react's People

Contributors

codabrink avatar gitter-badger avatar rllola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zeronet-react's Issues

Consider using create-react-app

It's defacto standard and because maintaining dev stack sucks.

Btw, your profile photo is very close the place I live :-)

Create react-zeronet lib

Writting a general interface for zeronet and react to work together without too much trouble.

Not sure this is a good idea and maybe there is a better way of doing instead of rewritting zeroframe.js as a redux-store.

ignore node_modules?

Hi Lola. Thanks for your effort~!
Dang.. i should know the answer.. but node_modules is getting included / signed.
(creates a huge content.json and requires +40mb zite)
If i understand correctly, gulp creates bundle, therefore we don't require inclusion of all modules, so we should exclude them, right? I've tried "node_modules/.*" ..but to no avail.
Could you include your content.json directives as a sample?
Also, the linked blog tutorial is for creating 'zeroreact.coffee' would normally be in JS folder for 'all.js' compiling, so we should make zeroreact.js instead, right? (or maybe app.js is interfacing zeroframe only)

cheers, bot@zeroid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.