项目作者: Hypertopic

项目描述 :
Corpus analyses confrontation
高级语言: JavaScript
项目地址: git://github.com/Hypertopic/Porphyry.git
创建时间: 2011-02-03T19:20:52Z
项目社区:https://github.com/Hypertopic/Porphyry

开源协议:GNU Affero General Public License v3.0

下载


PORPHYRY – Corpus analyses confrontation

Contact: aurelien.benel@utt.fr

Home page: https://github.com/Hypertopic/Porphyry

How to test the development version

Requirements:

  • git
  • curl
  • wget
  • node and npm
  • docker and docker-compose

Install and start backend with test data

  1. wget -qO- "https://github.com/Hypertopic/Argos/archive/v4.tar.gz" | tar xvz
  2. cd Argos-4
  3. docker-compose up -d
  4. cd ..

Argos is now available at http://localhost

Create test user

  1. curl --silent -X PUT localhost:5984/_users
  2. curl --silent -X PUT localhost:5984/_users/org.couchdb.user:alice -H 'Accept:application/json' -H 'Content-Type:application/json' -d '{"name":"alice", "password":"whiterabbit", "roles":[], "type":"user"}'

Install and start frontend

  1. git clone https://github.com/Hypertopic/Porphyry.git
  2. cd Porphyry
  3. npm install
  4. npm start

Porphyry is now available at http://localhost:3000
Please note that the terminal is devoted to the process until it is canceled.

Install test tools

Add this function to your profile:

  1. function cucumber() {
  2. (docker run --rm -v "$(pwd)":/app --tty --net="host" --env APP_HOST="http://host.docker.internal:3000" benel/cucumber-capybara "$@")
  3. }

Type the following command:

  1. cucumber --help

Run tests

From the Porphyry folder:

  1. cucumber --fail-fast --quiet

How to enable plugins

Enable comments

  1. Sign up to Disqus,
  2. Choose Install Disqus on my site,
  3. Set your Website data and create site. Remember its short name.
  4. Edit public/config.yml and paste the short name as the value of disqus setting.

Enable world map

  1. Sign up to GoogleMaps,
  2. Create an API key to be used with geocoding and dynamic map services
  3. Edit public/config.yml and paste the API key as the value of map/key setting,
  4. If necessary, switch geocoding API URI from GoogleMaps to GeoXene.
  5. If necessary, add layers (vases is here the ID of the portfolio):
  1. portfolio:
  2. vases:
  3. layers:
  4. - uri: https://steatite.utt.fr/picture/405e66c63060b595c02e6590a8f6abbda104cb03
  5. bounds:
  6. south: 37.977910
  7. west: 23.718200
  8. north: 37.978780
  9. east: 23.719010
  10. - uri: https://steatite.utt.fr/picture/78e81db6ee77decd3e40cf3124c04a6aaaaa2fc4
  11. bounds:
  12. south: 37.97862453543905
  13. west: 23.716649743986387
  14. north: 37.978755
  15. east: 23.716789

Enable building maps

Edit public/config.yml and add:

  1. portfolio:
  2. vitraux:
  3. visitMap: true

where vitraux is the ID of your portfolio.