-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from sbs20/development
Internationalisation and localisation + docs
- Loading branch information
Showing
27 changed files
with
175 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,60 @@ | ||
# Development | ||
|
||
## Steps | ||
## Install and setup | ||
|
||
* Install Node | ||
* Clone the repo | ||
* Navigate to the repo directory | ||
``` | ||
sudo npm install -g @vue/cli @vue/cli-service-global gulp-cli | ||
npm run install | ||
``` | ||
```shell | ||
# Install dependencies | ||
sudo apt-get install curl nodejs npm imagemagick sane-utils tesseract-ocr | ||
|
||
## Run for development | ||
# Ideally set the npm version | ||
sudo npm install [email protected] -g | ||
|
||
``` | ||
# Enable PDF (required for execution and unit tests) | ||
sudo sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read | write" pattern="PDF"'/ /etc/ImageMagick-6/policy.xml | ||
|
||
# Clone the repo | ||
git clone https://github.com/sbs20/scanservjs.git | ||
|
||
# Install all packages | ||
cd scanservjs && npm run install | ||
|
||
# Run (from the scanservjs directory) | ||
npm run serve | ||
``` | ||
|
||
This will hook the server component into webpack (see vue.config.js) and | ||
references below. | ||
`npm run serve` will hook the development server into webpack (see | ||
vue.config.js). | ||
|
||
If you run into the following error, then you may need to increase your inotify | ||
limit: | ||
|
||
``` | ||
[nodemon] Internal watch failed: ENOSPC: System limit for number of file watchers reached, watch '/.../scanservjs/packages/server/src' | ||
``` | ||
|
||
To incease it temporarily: | ||
|
||
``` | ||
sudo sysctl fs.inotify.max_user_watches=131072 | ||
``` | ||
|
||
To update it permanently will depend on your distribution - but this will work | ||
with Debian: | ||
|
||
``` | ||
echo fs.inotify.max_user_watches=131072 | sudo tee -a /etc/sysctl.d/50-default.conf; sudo sysctl -p | ||
``` | ||
|
||
## Build | ||
|
||
Before committing please verify and build | ||
|
||
``` | ||
npm run verify | ||
npm run build | ||
npm run verify && npm run build | ||
``` | ||
|
||
Create a local release package | ||
Alternatively, create a local release package | ||
|
||
``` | ||
npm run release | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.