Seatback uses Frontity for connecting with Wordpress admin.
Use the npm
or yarn
package manager to install seatback.
cd seatback
npm install
or
yarn install
Recommended node.js
version - 12.16.3
In frontity.settings.js
set the Wordpress API URL:
{
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://seatback-admin.webbuilder.in.ua/wp-json"
}
}
},
npx frontity dev
or
npx frontity dev --port YOUR_PORT
npx frontity build
npx frontity serve
Sometimes serve
command returns error. If you get it, run
node index.js
The master
branch deploys every 2 days.
To add the code to master:
- Create another branch from master. ( follow names
featute/branchmane
orfix/branchname
) - Create PR. Assign someone to check it.
- After approvement code merges to master.
- Install
node.js
version -12.16.3
- Run the progect
npx frontity build
npx frontity serve
Sometimes serve
command returns error. If you get it, run
node index.js
Optional you can use PM2 for restarting application.