Code Monkey home page Code Monkey logo

commerce-remote-app's Introduction

React version

Liferay React Remote App

This is a template intended for tests & demos. The webpack configuration included is not optimized for production environments.

Using this template

By default, the custom element name is lfr-react-remote-app. You can change it in src/index.js:

const ELEMENT_ID = 'lfr-react-remote-app';

This template is using a custom webpack configuration to build your application in a single file (bundle.js) making easier to create a Remote App in Liferay DXP/Portal.

You can find multiple scripts in package.json not using react-scripts:

  • start: watch files under src/ and run serve if there is any change which allows you to keep the single file approach on localhost.
  • serve: run the build script and serve static files under the build folder on port 3000.
  • build: transpile your application into a build folder using webpack and its configuration.

You can still run the standard react scripts with start:react and build:react.

Deploy to Netlify

Documentation: https://docs.netlify.com/site-deploys/create-deploys/

Why Netlify? Because it's awesome! Once your repository is linked, you have an automatic deployment each time you push changes to your repository. And by default, Netlify uses cache-control: public, max-age=0, must-revalidate to serve your application which means that you are able to see each changes live. Very useful for tests and demos, and if needed you can have custom HTTP Headers using a config file. Cherry on the cake, they provide a very fair free tier based on bandwith and build frequency (cf. Pricing).

commerce-remote-app's People

Contributors

jhanda avatar

Watchers

 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.