
synquery-bootstrap
allows you to quickly install and setup develop environment with synquery web-platform via the command line.
Example:
$ sb use [project id]
Now ready to execute \#project_id
Simple as that!
synquery-bootstrap
also provides convenience tools for building Single-Session Application:
1. HTML replacer
# change parcel absolute paths to relative
$ node .sb/etc/replacer.js relativize -A
# add or modify html node in bulk
$ node .sb/etc/replacer.js add -A head content-type "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">"
# delete html node in bulk
$ node .sb/etc/replacer.js del -A head meta,content-type
- Node.js
- Mongodb
- Yarn package manager
- Parcel
- Foonyah CI - A CI oriented testing tool for npm packaged project
synquery-bootstrap needs the well-known javascript runtime node.js. We recommend to install nvm before installing this module.
After installing node.js, you should make your project directory and move into it.
mkdir myproject
cd myproject
Then, to install the release version:
npm install synquery-bootstrap
Or to install the latest version(only on bash environment):
curl -o- https://raw.githubusercontent.com/synquery/synquery-bootstrap/refs/heads/main/cmd/setup.sh | bash
wget -qO- https://raw.githubusercontent.com/synquery/synquery-bootstrap/refs/heads/main/cmd/setup.sh | bash