This repository has been archived by the owner on Jun 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Quickstart tutorial
Martin Ennemoser edited this page Dec 18, 2017
·
20 revisions
This tutorial shows how to set up a simple client/server example application using Phovea. The name of the example application is "Test".
npm install -g yo
npm install -g github:phovea/generator-phovea
Create repository for application. The application repository is the place where the whole application code resides.
- Go to github.com and create a new repository. Name the repository "test"
- Clone it locally: Open a terminal and enter:
git clone https://github.com/<path>/test.git
Create a product repository
- Go to github.com and create a new repository. Name the repository "test_product". The _product suffix is important so that Phovea knows that it is a Product.
- Clone it locally: Open a terminal and enter:
git clone https://github.com/<path>/test_product.git
cd test
yo phovea:init-app
Follow the wizard.
Application Title: Test
Client Only: N
Add nesessary libraries
Plugin name: test
Description: A simple test application
Leave all other fields as they are (just press Enter)
git add *
git commit -m "Initial commit
git push
If you now go to your Github Test repository, you should see the project the project files and a Readme that explains the installation process.
In package.json, change under dependencies all phovea references to develop branch.
"phovea_core": "0.1.0" -> "phovea_core": "github:phovea/phovea_core#develop"
"phovea_ui": "0.1.0" -> "phovea_ui": "github:phovea/phovea_ui#develop"
cd test_product
yo phovea:init-product
Follow the wizard.
Plugin name: test_product
Description: A test product
Leave project homepage and author's credential as they are
Service type: Web
Service name: Testservice
Primary respository: git clone https://github.com/<path>/test.git
Primary repository branch: master
Additional plugins: ENTER
Add custom additional plugins: N
Add another service: N
Open phovea_product.json. Edit
"branch": "master" -> "branch": "develop"
git add *
git commit -m "Initial commit
git push
Create new folder named workspace and switch to it.
mkdir workspace
cd workspace
Use phovea generator to create workspace.
yo phovea:setup-workspace <username or organization>/test_product
SSH clone: No