This boilerplate will make it easy for you to start developing your Wix app. This is a sample Wix application that uses oAuth and REST APIs. Clone/download the project, configure your application, run & have fun!
- Create an Application in Wix Developers
- Clone this repo
git clone [email protected]:shaykewix/sample-wix-rest-app.git
- Update your application data:
A. In the config.js:
- Update APP_ID with your application ID
******* - Update PUBLIC_KEY with your your public key
B. In the credentials.js:
- Update APP_SECRET with your application secret key - [Optional] If you are running on a local machine and/or don't have a local https certificate, run ngrok to get https proxy to your server:
ngrok http 3000
- In Wix Developers, update your application with the oAuth data:
- Configure "Redirect URL" (for example: https://[Your ngrok identity].ngrok.io/login )
- Configure "App URL" (for example: https://[Your ngrok identity].ngrok.io/signup )
- Run your server
npm install
npm build
npm start