共享经济市场的店面(https://vqmarketplace.com)。在React上运行(尚未redux)
将存储库克隆到您本地的开发环境中。
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中有一个忽略规则
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市场使您能够在自己的市场店面上工作,同时仍使用官方的VQ Web服务。您始终可以连接到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-Deploy:
npm install s3-deploy --g
可以通过环境变量或〜/.aws/凭据文件提供AWS凭据。更多详细信息:http://docs.aws.amazon.com/cli/latest/topic/config-vars.html。请确保在AWS凭据中定义默认值,这将有助于防止部署期间缺少凭证错误。有利地,您可以使用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使用,该使用将为.NVMRC文件,如果您想手动安装Node和NPM,您可以在包装中检查发动机。
Nodejs 7.2.1和NPM 3.10.9在MacOS Sierra 10.12.6上,NodeJS 8.3.0和Windows 10上的NPM 5.6,NodeJS 9.0.0和NPM 5.5.5.1在AWS Linux Ubuntu上16.04.24.24.2
反应
Chrome (最新版本)
野生动物园(最新版本)
支持Internet Explorer和Microsoft Edge(最新版本) VQ MarketPlace Web应用程序还旨在运行最新版本的Internet Explorer。但是,当前的发展未在此浏览器中进行特殊测试。请在我们的支持页面上提交问题。
移动支持VQ MarketPlace Web应用程序并未通过对移动屏幕的全部支持而开发,因为移动应用程序由VQ Labs分别提供。当前的开发未在移动屏幕上进行专门测试。
但是,Web应用程序旨在成为一系列移动设备和屏幕尺寸的工作。请在我们的支持页面上提交问题。
https://vqlabs.freshdesk.com/support/home
我们遵循以下分支模型:http://nvie.com/posts/a-successful-git-branching-model/
麻省理工学院
VQ实验室