Git Product home page Git Product logo

tpa-demo-app-angular's Introduction

Wix app - Angular 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 - version 10.16.0

Run the app:

  1. Clone our starter template git clone https://github.com/wix/tpa-demo-app-angular.git
  2. Navigate to your project folder cd tpa-demo-app-angular/
  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: https://localhost:5000/widget.html

Registering the app

  1. Create an app at: https://dev.wix.com/dc3/my-apps
  2. Go to your "Workspace" and add a new website component of the "Widget" type and give it a name.
  1. Set the App Settings URL to:
  1. Save your app.
  2. Click "Test your app" in the dashboard, and see that it functions.
  3. Set your app up on a server to ensure everything works in a production enviorment.

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.

tpa-demo-app-angular's People

Contributors

uricorn avatar idealamz avatar ronnyelkayam avatar dorgalam avatar chenr13 avatar gilatwix avatar ganimomer avatar github-tools-service avatar

Stargazers

Aimad Harilla avatar Felipe Monteiro avatar  avatar  avatar

Watchers

Dmitry Naumenko avatar Luis Godinez avatar Ivan Kamenev avatar James Cloos avatar Yoav Abrahami avatar Dor Raba avatar Eugene Borys avatar Danny Steinhoff avatar Algimantas Krasauskas avatar avgar marciano avatar Daniel Gendelman avatar Noam Katzir avatar  avatar Zaher Omar Kassem avatar JJ Major avatar itay shmool avatar  avatar Yuval Aviyam avatar Olesia Zaichenko avatar Gregory Bondar avatar uri bechar avatar Leonid Zhuk avatar Tomer Cohen avatar Peter Tarasenko avatar Tomer Chajaj avatar Valdemaras avatar Adam Shavit avatar Eyal Malron avatar ittay avatar Jonas Kabelka avatar Avi Mualem avatar  avatar Nadav Abrahami avatar Dmitriy Gordienko avatar  avatar Yakir Amar avatar Dom avatar Yonatan Hattav avatar Ihor Kucherenko avatar Aleksandra Pervunina avatar Assaf Segev avatar  avatar Nancy avatar Nojus Adomaitis avatar Naomi avatar Igor Dvorkin avatar  avatar Miki Leib avatar

tpa-demo-app-angular's Issues

webpack HMR not configured properly

The HMR configuration for webpack is not set up to actually work, it loads but doesn't actually provide live reload. to get it working I had to:

  1. add a publicPath to webpack.config output

  2. point settings.html to load from that public path

  3. add the webpack.HotModuleReplacementPlugin to the plugins in webpack.config

  4. removed 'webpack-dev-server/client?http://localhost:5000' from webpack.config settings.entry list and instead added the following to server.js (note the second entry 'webpack/hot/dev-server' added as well):

    config.entry.settings.unshift("webpack-dev-server/client?http://localhost:5000", "webpack/hot/dev-server");

npm install throws error

On running the command npm install, getting the following error:

npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\Program Files\nodejs\node.exe',
npm ERR! gyp verb cli 'C:\Users\{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-gyp\bin\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb which failed Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\windows.js:36:5npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb which failed python2 Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\windows.js:36:5npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb which failed code: 'ENOENT'
npm ERR! gyp verb which failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb which failed Error: not found: python
npm ERR! gyp verb which failed at getNotFoundError (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\windows.js:36:5npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb which failed python Error: not found: python
npm ERR! gyp verb which failed at getNotFoundError (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:13:12)
npm ERR! gyp verb which failed at F (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:68:19)
npm ERR! gyp verb which failed at E (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:80:29)
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\which\which.js:89:16
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\index.js:42:5
npm ERR! gyp verb which failed at C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\isexe\windows.js:36:5npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb which failed code: 'ENOENT'
npm ERR! gyp verb which failed }
npm ERR! gyp verb could not find "python". checking python launcher
npm ERR! gyp verb could not find "python". guessing location
npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder. (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at callback (C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users{USERNAME_GOES_HERE}\Desktop\tpa-demo-app-angular\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users{USERNAME_GOES_HERE}\AppData\Local\npm-cache_logs\2021-12-08T22_19_52_125Z-debug.log

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.