gilisho / wix-app-widget

Wix App Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wix app - React JSX Demo Widget

Overview

This boilerplate will make it easy for you to start developing your Wix app. The project is already set up with a widget component and its App settings panel.

Most apps have a server side, but to keep it simple, we'll focus only on the client side.

Features

  • Uses the official Wix UI-lib and UI controls
  • Demo implementation of the app’s interaction with its settings panel
  • Option to use plain CSS (we use SASS by default)
  • Updated with the latest version of Wix SDK

Getting started

Before you start - get node.js

Generate the app:

  1. Clone our starter template git clone git@github.com:wix/tpa-demo-app-react-jsx.git
  2. Navigate to your project folder cd tpa-demo-app-react-jsx/
  3. Install npm npm install
  4. Run webpack webpack
  5. Run the app npm start

This will run a webserver on your local host. You can now view your app in your browser: http://localhost:3000/widget.html

Registering the app

  1. Follow the registration guide to create a new app.
  2. Add a Widget endpoint:
  1. Set the App Setting URL to:
  1. Save your app.
  2. In order to test the widget in localhost in the Wix editor you need to disable the editor/site SSL.
  1. Set your app up on a server to ensure everything works.
  • Be sure to toggle back on HTTPS in the editor, and enable HTTPS in webpack by setting https: true in the server.js file.

Support

Need help setting it up or have any questions?

License

Copyright (c) 2014 Wix.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Wix App Example


Languages

Language:JavaScript 73.7%Language:CSS 18.4%Language:HTML 8.0%