HandSignMe is a PDF signing web service with invitations.
The easiest way to use HandSignMe is with its Docker image.
TODO later...
The following describes all steps to setup a developement environment on Linux.
The folder api
contains the Node.js based REST API and app
contains the Vue.js based application.
The developpement environment requires :
$ sudo apt install nodejs npm
- Vue.js CLI for the web application.
$ npm install -g @vue/cli
See installation steps here.
- SQLite 3 to manage the database.
$ sudo apt install sqlite3
To setup the environment follow this steps :
- Install dependencies for both projects :
$ cd api
$ npm install
$ cd ../app
$ npm install
- Run MailHog with docker
$ docker pull mailhog/mailhog
$ docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
- The database is fully managed by
sequelize.js
. Run the following to migrate and populate the database :
$ cd api
$ npx sequelize db:migrate
$ npx sequelize db:seed:all
- To have access to the thumbnails you have to edit the file :
etc/ImageMagick-7/policy.xml
(it can be ImageMagick-6, it depends of the version of the software) and add before</policymap>
the line<policy domain="coder" rights="read | write" pattern="PDF" />
To run the unit tests of the API :
$ cd api
$ npm test
To run the unit tests of the application :
$ cd app
$ npm test
Then you can start the service :
-
Create a
.env
file for passwords, host, port... -
Sart the Node.js API
$ cd api
$ npm run dev # for developement
$ npm run prod # for production
- Run the Vue.js application
$ cd app
$ npm run serve
TODO later...
- Pierre-Jean MOREL
- Quentin PAUWELS
- Matthieu BRASSART
- Hedi GASSARA
- Quatadah NASDAMI
- Mohamed JAMIL
- Youssef TOUMI