/lucify-template-project

A template for projects that use TypeScript, React, Redux and Webpack

Primary LanguageCSS

Empty template project with React, Redux, TypeScript and Webpack

This has been influenced by create-react-app and Lucify's own visualisation projects.

Development

Requires Node 8 or greater and yarn.

Set up the development environment with:

yarn

Start a local development server with mock data:

yarn start

Then open http://localhost:3000 in your web browser.

Building deployment distributions

All the following build commands should be executed in the project root folder.

Build a production distribution into dist with:

NODE_ENV=production yarn run build

Build a staging distribution into dist with:

NODE_ENV=staging yarn run build

You can test a distribution by:

cd dist
ws

This will start a light-weight local server at http://localhost:8000. To use the ws command, you need to install local-web-server

yarn add global local-web-server