Kikoeru-express (Back-end) v6.2
Check the nodejs version
Install Kikoeru v6.2 required nodejs version of v14.17.0 v14.15.0
$ npm install -g n
$ n 14.15.0
After changed the node version to 14.15.0.
npm version will also be changed 6.14.13 6.14.8 at the same time.
If node-pre-gyp: Permission denied
Reinstall the node-pre-gyp
module
$ npm install -g node-pre-gyp
Read/Write permission error
If while installing, return such error
Error: EACCES: permission denied, open '/root/kikoeru-express-0.6.2/node_modules/sqlite3/package.json'
Must give npm sudo
permission
$ sudo npm install
Generate binary files
The pkg
must be installed first
$ npm install -g pkg
Make sure the front-end files in project parent directory
$ pkg package.json -t node14-linux-x64 --out-path package
A package folder will be created after this command executed, and it wll contain a single linux executable binary file.
Tip
if binary files created failed, and it prompts need files from a javascript.
Just create the files it needs. Then rerun above command.
After the binary file is created, put node_sqlite3.node
next to executable binary file(in the same directory).
$ cp <project parent directory>/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node ./package
Then now you can execute the binary file.
Kikoeru-quasar (Front-end) v6.2
For front-end of the kikoeru, you can choose to download pre-compiled front-end files from kikoeru project. Or you can download front-end source code and compile it yourself.
Compile source code
First, in kikoeru-quasar directory.
$ sudo npm install
After it finishes installing, you need to install quasar too in order to compile front-end files.
$ npm i -g @quasar/cli
Modify the source code as you wish. After you finish, there are two way to generate front-end files.
1.SPA
$ quasar build
2.PWA
$ quasar build -m pwa