공유 경제 시장 (https://vqmarketplace.com)을위한 상점. REACT에서 실행 (아직 레드가 없음)
리포지토리를 지역 개발 환경으로 복제하십시오.
git clone https://github.com/vq-labs/vq-marketplace-web-app.git // clones the repository from remote
cd vq-marketplace-web-app // goes to the repository folder
npm install // installs the npm packages from ./package.json
.env.example 파일을 검토하고 먼저 필요한 변경을 한 다음 .env 파일로 이름을 바꿉니다. 이 파일은 민감한 정보를 포함 할 수 있으므로이 파일을 커밋해서는 안됩니다. 따라서 .gitignore에 무시 규칙이 있으므로이를 커밋하려면 .gitignore에서 제거하십시오.
ENV=production //if you run it with an env other than production,
//npm start will also watch for file changes and restart.
PORT=4000
API_URL=http://localhost:8080/api //this is the API url that you connect to.
//If you run vq-marketplace-platform API, you can leave it as it is
TENANT_API_URL=http://localhost:8081/api //this is the URL that manages multi-tenancy.
//If you specify TENANT_ID it means you are only running one tenant
//therefore you can leave this as it is
TENANT_ID=test //this is the TENANT_ID, in other terms the name of the marketplace that you want to setup.
//can be anything. only accepts slug-style.
//By default, all the TENANT_ID in all parts of the app (API, WEB-APP) are test.
//If you change it please make sure that all your env files on every repository
// related to this project has the same TENANT_ID
LocalHost : 3000에서 앱이 시작됩니다. 이 앱은 vq-marketplace-api가 http : // localhost : 8080에서 사용할 수 있다고 가정합니다.
npm start
VQ Marketplace를 사용하면 공식 VQ 웹 서비스를 사용하면서 자신의 마켓 플레이스 상점에서 일할 수 있습니다. VQ-Labs가 호스팅하는 시장에 항상 연결할 수 있습니다. 응용 프로그램을 작성할 때는 vq_api_url을 조정하면됩니다.
npm start
시도해보고 빠르게 시작하여 기존 마켓 플레이스에 연결하려면 다음을 입력하십시오.
// starts rental marketplace TaskBee (ala TaskRabbit)
npm run start:taskbee
// starts rental marketplace AirHome (ala AirBnB)
npm run start:airhome
// starts offers marketplace Talentwand (ala Fiverr)
npm run start:talentwand
node ./node_modules/gulp/bin/gulp.js build --API_URL=https://taskrabbit.vqmarketplace.com/api && node scripts/start.js
Amazon S3로 파일을 호스팅 할 수 있습니다. 전 세계적으로 S3 기업이 설치되어 있는지 확인하십시오.
npm install s3-deploy --g
AWS 자격 증명은 환경 변수 또는 ~/.aws/credentials 파일을 통해 제공 될 수 있습니다. 자세한 내용은 http://docs.aws.amazon.com/cli/latest/topic/config-vars.html. AWS 자격 증명의 기본값을 정의하십시오. 이렇게하면 배포하는 동안 자격 증명 오류가 발생하지 않습니다. ALTERATIAL에서 AWS에서 마법사를 사용할 수 있습니다.
aws configure
다음 명령은 앱을 S3 버킷에 준비, 빌드 및 배포합니다.
AWS_BUCKET_NAME=xxx.vqmarketplace.com
AWS_REGION=eu-central-1
VQ_API_URL=yourMarketplaceId.vqmarketplace.com
npm run deploy
우리는 이러한 환경에서 응용 프로그램을 테스트했지만 .nvmrc 및 package.json 엔진이 힌트를 취할 수 있도록 설정되었습니다. (NVM을 사용하는 경우 NVM 사용을 수행 할 수 있습니다.
MacOS Sierra 10.12.6, Nodejs 8.3.0 및 NPM 5.6의 Nodejs 7.2.1 및 NPM 3.10.9 Windows 10의 Nodejs 9.0.0 및 NPM 5.5.1 AWS Linux Ubuntu 16.04.2.
반응
크롬 (최신 버전)
사파리 (최신 버전)
Internet Explorer 및 Microsoft Edge (최신 버전) VQ Marketplace Web-App을 지원합니다. Web-App은 최신 버전의 Internet Explorer에서도 실행하는 것을 목표로합니다. 그러나 현재 개발은이 브라우저에서 구체적으로 테스트되지 않습니다. 지원 페이지에 문제를 제출하십시오.
모바일 지원 VQ Marketplace Web-App은 VQ Labs에서 모바일 앱을 별도로 제공하므로 모바일 화면에 대한 전체 지원으로 개발되지 않았습니다. 현재 개발은 모바일 화면에서 구체적으로 테스트되지 않습니다.
그러나 웹 앱은 다양한 모바일 장치와 화면 크기를 일으키는 작업을 목표로합니다. 지원 페이지에 문제를 제출하십시오.
https://vqlabs.freshdesk.com/support/home
우리는 다음 분기 모델을 따릅니다 : http://nvie.com/posts/a-successful-git-branching-model/
MIT
VQ 실험실