App for automatically placing items on presentation slide the Miro board
git clone https://github.com/Readix/smart-layout.git
cd smart-layout
- Run
./npm_init.sh
(install npm and load all necessary dependencies) - Run
npm run ngrok
- Edit
src/config.js
:- Set BASE_URL from ngrok with https protocol extension
- Set CLIENT_ID from the App settings
- Set CLIENT_SECRET from the App settings
- Run in another terminal:
npm run init
npm run start
- Open app landing (url from ngrok, like https://--------.ngrok.io)
- Configure web-plugin โ set iframe url in App settings
- Explore it
app.js
is the entry point
api.js
contains methods for work with API
config.js
contains configs, edit this file before usage
events.js
process webhook events
db.js
is simple DataBase which works with file database.txt