Giter Club home page Giter Club logo

sails's Introduction

sails

sails wallet

install info

  • use --recursive flag when cloning the rep
  • npm i
  • npm run electron-dev (or npm run electron-dev-browser)

project structure

sails - main folder

  1. bc_node - blockchain part written in golang
  2. public - static documents
    1. css - folder for css
    2. img - images
    3. js - simple js and json files
  3. setups - files thar are used for diferent kind of setups ( routers, env ...)
  4. src
    1. actions - folder reserved for redux actions
    2. components - folder for react components
    3. libs - additional libs and hellpers that are used in modules
    4. modules - folder for components logic
    5. reducers - folder reserved for redux reducers
    6. store - folder reserved for redux store wich contains only one file - store.js
  5. bin - folder for gosafex executable

dev guildelines

  • if its possible use one component per file
  • Use PascalCase for component classes and camelCase for component instances and function names
  • Use the filename as the component name
  • every component that is used in more than one place should be in src/componets/shared folder
  • every page should have folder inside src/components
  • module files have extension .module.js and its module per page (ex. Home components should have home.module.js module that have functions for each component inside src/components/home folder)
  • tests have .test.js extension
  • actions for redux should have action.js extension
  • reducers should have reducer.js extension
  • reducers and actions shoud be broken down on state propery level (ex. for wallet property of the state there will be wallet.reducer.js and wallet.action.js that will have all logic for manipulation of the wallet propery inside the state)
  • root.reducer.js combines all reducer
  • there should be only one redux store

sails's People

Contributors

programirka avatar ddabek avatar

Watchers

James Cloos avatar

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.