Skip to content

Beautiful Lattice Overhead Brojector - browser version

License

Notifications You must be signed in to change notification settings

xenharmonic-devs/blob

Repository files navigation

Blob

Beautiful Lattice Overhead Brojector

An idea by Joakim Bang Larsen

source: https://www.facebook.com/groups/234189900598263/permalink/320419298641989/

Running the app

Copy the contents of the public folder to any webserver and open index.html

or

Install the package locally and run npm run app. The page will be hosted at http://localhost:3000. To stop it, press Ctrl+C

How to contribute

Important folders

public - this hosts all the built files, ready to be uploaded to any webserver. This is also the place, where you can add any images or third-party libraries to use.

src - this has all the source files for the client side code. this can use all the newest javascript syntax, it will be compiled back to ES6 and minified

server - a small webserver, which hosts the files inside public

The stack

The project is using nodejs, and it uses npm to get additional third-party packages.

On the client side it uses react and redux for a data oriented DOM management.

For styling it uses sass and css modules.

For utility functions and better data flow management it uses ramda

Installing

You need to have nodejs installed and the repo cloned to your computer. To install the dependencies of the project, navigate to the project root via any command line interface and run npm install.

Starting the dev mode

After that you need to run npm run dev. This will do a bunch of things in the background:

  • start a webserver at http://localhost:3000/dev.html
  • watch changes of the files inside the public folder and trigger a server restart when any of the files change
  • when the server restarts, then it signals the browser to reload the page for you
  • when you change the source files inside the src folder, it will re-build the bundle and save it to public

You can stop the server any time by pressing Ctrl+C

Linting and formatting

The project uses eslint with rules from standard js for linting, and prettier for formatting javascript files.

It uses stylelint for formatting css files.

Commiting

Commiting has no special rules, you can write anything inside the message, but in the future we might shift over to using commitizen.

When you commit, then the linter will check the code and stop the commit process, if it finds any errors. It will also try and fix any formatting errors. After linting passes, a new bundle will be built in the public folder and added to the commited files. This will make sure, that the contents of the public folder on github is up to date.

About

Beautiful Lattice Overhead Brojector - browser version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published