juergenhah / cpsi-mapview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpsi-mapview Build Status

Check out the latest deployed version at https://compassinformatics.github.io/cpsi-mapview/

Project setup

This steps assume you have Sencha CMD v6.6 installed on your system and a copy of ExtJS v6.2.0 downloaded.

Clone this repository

git clone https://github.com/compassinformatics/cpsi-mapview.git
cd cpsi-mapview
git submodule update --init --recursive

Add your ExtJS 6.2 library

sencha app upgrade /path/to/local/extjs6.2

Start dev-server

sencha app watch

Open http://localhost:1841 in your browser.

If a simple local server is needed to omit CORS problems, you can use the one configured in docker-compose.yml. Fill placeholders in nginx.conf with appropriate values and start nginx server beside sencha dev server simply by:

docker-compose up

The application is available via http://localhost:81/ afterwards.

For running tests various dependencies listed in package.json need to be installed. Run the following:

npm install

Updating the deployed state

# 1. Build the standalone version
sencha app build
# 2. upstream remote should point to canonical repository
# 3. publish using black magic
npx gh-pages -d build/production/CpsiMapview/ -o upstream

Testing

Navigate to the project folder and run the following:

npm test

To have tests continually running while making changes:

npm run test:watch

To open in a browser and leave the browser open (to review UI components, debug, etc.). --auto-watch prevents application JS files being cached.

karma start --browsers Chrome --single-run=False --debug --auto-watch

See also https://glebbahmutov.com/blog/debugging-karma-unit-tests/

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.8%Language:HTML 0.1%Language:CSS 0.0%