What is this?
The PRoduct Innovation and Social Mapping (PrISM™) Tool is a project for Northwest Green Chemistry created by Seattle GiveCamp 2018 volunteers. It is intended to support material product designers in developing products based on sustainable green chemistry and engineering design principles.
Where is my data stored?
Your data is maintained in local storage. When you select an existing project that you have worked on previously, you should see your previously-entered answers in the evaluation form. You can load a project you have already created and re-evaluate at any time.
Northwest Green Chemistry does not transmit client data to a server or maintain your company data. Please keep your local project data if you wish to revisit your evaluation.
How do I download it?
Select the latest release. Find your installer (mac, win, or linux) under Assets and click to download. That's it!
How do I use it?
The first time you open PrISM, you'll see an introductory page. Click the right arrow to proceed to navigation.
Choose a product name in the upper right menu if you are returning to a design evaluation, or select --New Product--
and give the product being evaluated a name.
Select a section of the navigation wheel to begin or proceed with your design evaluation.
You may download a PDF report at any point in the process that should help you identify areas of focus for your design lifecycle.
If you have installation or compilation issues with this project, please see electron-react debugging guide
First, clone the repo via git; then install dependencies with yarn.
$ cd PrISM
$ yarn
Start the app in the dev
environment. This starts the renderer process in hot-module-replacement mode and starts a webpack dev server that sends hot updates to the renderer process:
$ yarn dev
Alternatively, you can run the renderer and main processes separately. This way, you can restart one process without waiting for the other. Run these two commands simultaneously in different console tabs:
$ yarn start-renderer-dev
$ yarn start-main-dev
If you don't need autofocus when your files was changed, then run dev
with env START_MINIMIZED=true
:
$ START_MINIMIZED=true yarn dev
To package apps for the local platform:
$ yarn package
To package apps for all platforms:
First, refer to Multi Platform Build for dependencies.
Then,
$ yarn package-all
There have been several modules added to this project, including material-ui to reuse react UI components. Data is managed client-side with local storage.
This boilerplate uses a two package.json structure. This means, you will have two package.json
files.
./package.json
in the root of your project./app/package.json
insideapp
folder
Rule of thumb is: all modules go into ./package.json
except native modules, or modules with native dependencies or peer dependencies. Native modules, or packages with native dependencies should go into ./app/package.json
.
- If the module is native to a platform (like node-postgres), it should be listed under
dependencies
in./app/package.json
- If a module is
import
ed by another module, include it independencies
in./package.json
. See this ESLint rule. Examples of such modules arematerial-ui
,redux-form
, andmoment
. - Otherwise, modules used for building, testing and debugging should be included in
devDependencies
in./package.json
.
See the wiki page, Module Structure — Two package.json Structure to understand what is native module, the rationale behind two package.json structure and more.
For an example app that uses this boilerplate and packages native dependencies, see erb-sqlite-example.
This is configured to use css-modules out of the box.
All .css
file extensions will use css-modules unless it has .global.css
.
If you need global styles, stylesheets with .global.css
will not go through the
css-modules loader. e.g. app.global.css
If you want to import global css libraries (like bootstrap
), you can just write the following code in .global.css
:
@import '~bootstrap/dist/css/bootstrap.css';
- electronjs.org/docs - all of Electron's documentation
- electronjs.org/community#boilerplates - sample starter apps created by the community
- electron/electron-quick-start - a very basic starter Electron app
- electron/simple-samples - small applications with ideas for taking them further
- electron/electron-api-demos - an Electron app that teaches you how to use Electron
- hokein/electron-sample-apps - small demo apps for the various Electron APIs
This project was forked from MIT © Electron React Boilerplate