micado-eu / ngo_application

Application for the NGO
European Union Public License 1.2
1 stars 4 forks source link

CodeFactor

Micado app (micado)

NGO application

Development instructions

To develop this application you need to execute the following command to get a proper shell in the development environment, this will mount the source folder and allow editing the code with you preferred editor while getting the benefit of having autorefresh etc.

docker-compose run ngo_app_dev bash

Install the dependencies

The first time you will have to install all the modules or quasar will complain.

npm install

Start the app in development mode (hot-code reloading, error reporting, etc.)

docker-compose up

The application can be accessed both the following addresses

http://ngo.micado.csi.it   [using the balancer in front of the web server as in production environment; the FQDN must be set in hosts file]
http://localhost:8080     [with hot reloading]

To test the application during Development

docker exec -it ngo_application_ngo_app_dev_1 /bin/bash
QENV=test;NODE_ENV=test;quasar test --unit jest

Build the app for production

To have a build to test locally is possible to execute the command below

docker build -t micadoproject/ngo_app:0.0.1 .

For release the GIT repository is linked to Dockerhub so at each push a new image build will be triggered.

Customize the configuration

See Configuring quasar.conf.js.

Funded by

EU LogoThis project has received funding from the European Union’s H2020 Innovation Action under Grant Agreement No 822717.