Skip to content
Snippets Groups Projects
user avatar
Manuel Spuhler authored
3e61151d

CHUV License DockerHub Codacy Badge CircleCI

MIP portal frontend

Libraries

  • AngularJS v1.6.8
  • Bootstrap v3.3.7

Frontend development

This is a minimal setup to do frontend development in this project:

  1. Checkout the frontend_dev branch of the compose-everything-locally project and run it. You will have the MIP backend running on your computer with no frontend.
  2. Install npm
  3. Run the portal-frontend:
  • npm install (might require sudo)
  • npm install -g gulp (might require sudo)
  • npm install -g bower (might require sudo)
  • bower install
  • gulp
  • cd app
  • php -S localhost:8000 & (runs a development server from the app folder. PHP is not required, other development server should work, as long as it runs on port 8000 and supports .htaccess)
  • google-chrome --disable-web-security --user-data-dir http://localhost:8000 (opens the frontend in Chrome with flags to ignore CORS issues. CORS must be disabled for development because the backend runs on a different domain name than the frontend)

Develop & debug

One may use Dockerfile-dev Run: ./run.sh

Build

Run: ./build.sh

Publish on Docker Hub

Run: ./publish.sh

License

Copyright © 2016-2017 LREN CHUV

Licensed under the GNU Affero General Public License, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.gnu.org/licenses/agpl-3.0.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Acknowledgements

This work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)

This work is part of SP8 of the Human Brain Project (SGA1).