GithubHelp home page GithubHelp logo

andrewisplinghoff / bitsharesblocks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svk31/bitsharesblocks

0.0 2.0 0.0 1.71 MB

Home Page: https://bitsharesblocks.com

License: GNU General Public License v3.0

JavaScript 71.67% HTML 25.60% CSS 1.73% CoffeeScript 1.01%

bitsharesblocks's Introduction

GPL License #Bitsharesblocks

Repo for the source code of http://www.bitsharesblocks.com

##Setup Clone into your directory of choice, then do "npm install" (sudo might be necessary).

The website uses a component file structure, see Angular Best Practice for App Structure.

In order to use lineman with this layout it is necessary to modify the grunt configuration file in:

/node_modules/lineman-angular/config/plugins/ngtemplates.coffee

Replace the following:

ngtemplates:
    app:
        options:
          base: "app/templates"
        src: "app/templates/**/*.html"
        dest: "<%= files.ngtemplates.dest %>"

    watch:
      ngtemplates:
        files: "app/templates/**/*.html",
        tasks: ["ngtemplates", "concat_sourcemap:js"]

with: (this is coffeescript so make sure the indentations are correct)

ngtemplates:
	app:
		options:
		  base: "app/components"
		src: ["app/templates/**/*.html",
		     "app/components/**/**/*.html"]
		dest: "<%= files.ngtemplates.dest %>"

watch:
	ngtemplates:
		files: ["app/templates/**/*.html","app/components/**/*.html"]
		tasks: ["ngtemplates", "concat_sourcemap:js"]

Then, in this file:

/node_modules/lineman-angular/node_modules/grunt-angular-templates/tasks/lib/compiler.js

Comment out line 18:

var id        = (options.prepend || '') + path.relative(options.base || '.', file).replace( /\\/g, '/');

And add the following on line 19:

console.log('file: '+file);
var id = file.split('/');
id = id[id.length-1];

##Use Launch the website locally using "lineman run". To compile, use "lineman build".

Access the website at localhost:8000.

##Translations Bounties for translations available here:

https://bitsharestalk.org/index.php?topic=11695.0

Translations accepted for bounties: Russian

bitsharesblocks's People

Contributors

svk31 avatar clayop avatar lakerta06 avatar andrewisplinghoff avatar xeroc avatar btswolf avatar chsln avatar larkx-team avatar

Watchers

 avatar 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.