Giter Site home page Giter Site logo

rvramesh / material-ui-prepack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neverfox/material-ui-prepack

0.0 2.0 0.0 1.29 MB

Set of Material UI (v0.13.4) + Flexbox Grid + React Router.

License: MIT License

CSS 48.83% HTML 0.74% JavaScript 49.43% Smarty 1.00%

material-ui-prepack's Introduction

structor compatible

Description

This project is a boilerplate for Web application which uses Material UI components for building UI. In this project you will find many variants of components from Matarial UI, also many of them are adopted to use in compositions with each other.
To read more details about Material UI library you can here: http://material-ui.com Version of Material UI library is 0.13.4

Flexbox Gird was taken as grid system. Read more about Flexbox Grid: http://flexboxgrid.com

This project includes a starter file structure for Redux, prepared Webpack configuration for building, and simple ExpressJS server.



Technologies and libraries

The following libs and technlogies were used:

  • react
  • react-router
  • redux, react-redux
  • material-ui
  • Flexbox Grid
  • express
  • webpack

react-router is used as routing mechanizm between pages in Structor. Equal router is used in final application after exporting pages. This will be discussed below in chapter "Export pages".

redux is a great implementation of Flux architechture and helps dramatically to build advanced Web apps.

express used as back-end HTTP server for Web application.

Starting Structor

If you download package from StructorMarket manually please execute the following commands in the project's directory:

  • Run command: npm install

Now you can start Structor from command line. To recognise the path of current project's folder Structor has to be started in the root directory of current project or started with command argument -d pointing to project's folder.

  • in project root dir: structor
  • in any other dir: structor -d <path to project directory>

Once you have started Structor you will see the project's workspace. Now you can try to combine components with each other, or generate new React components from the combination, or add new pages, or whatever you want.

This project has only three sample pages: /set1, /set2, and /progress

Exporting pages with routes

In any moment of work with Structor you can export existing pages into real pages with routes. This can be done by selecting option "Export project" from main menu in Structor's workspace.

After that you will get a list of generated files of pages' components. And one more additional file for router configuration. In current project these files will be generated into src/routes/ folder. But, you can change this path in .structor/config.json file.

Also you may edit templates for output React components in .structor/templates/ or add your own new with ".tpl" extension.

Building Web app

  • open main menu in Structor's workspace and select option Export project
  • Run command: npm run build
  • Run command: node ./server.js
  • Go to http://localhost:3000


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.