หน้าร้านสำหรับตลาดเศรษฐกิจการแบ่งปันของคุณ (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 คุณไม่ควรส่งไฟล์นี้เพราะอาจมีข้อมูลที่ละเอียดอ่อนดังนั้นเราจึงมีกฎที่ไม่สนใจ
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-deploywally ทั่วโลก:
npm install s3-deploy --g
ข้อมูลรับรอง AWS สามารถให้ผ่านตัวแปรสภาพแวดล้อมหรือในไฟล์ ~/.AWS/ข้อมูลรับรอง รายละเอียดเพิ่มเติมที่นี่: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html โปรดตรวจสอบให้แน่ใจว่าได้กำหนดค่าเริ่มต้นในข้อมูลรับรอง AWS ของคุณซึ่งจะช่วยป้องกันข้อผิดพลาดข้อมูลรับรองที่ขาดหายไประหว่างการปรับใช้ คุณสามารถใช้ตัวช่วยสร้างจาก AWS:
aws configure
คำสั่งต่อไปนี้จะเตรียมสร้างและปรับใช้แอพเป็น Bucket 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 ได้
NodeJS 7.2.1 และ NPM 3.10.9 บน MacOS Sierra 10.12.6, NodeJS 8.3.0 และ NPM 5.6 บน Windows 10, NodeJS 9.0.0 และ NPM 5.5.1 บน AWS Linux Ubuntu 16.04.2.2
ตอบโต้
Chrome (เวอร์ชันล่าสุด)
Safari (เวอร์ชันล่าสุด)
รองรับ Internet Explorer และ Microsoft Edge (เวอร์ชันล่าสุด) Web-App Web-App มีจุดมุ่งหมายเพื่อให้ทำงานบน Internet Explorer เวอร์ชันล่าสุด อย่างไรก็ตามการพัฒนาปัจจุบันไม่ได้ทดสอบโดยเฉพาะในเบราว์เซอร์นี้ โปรดส่งปัญหาในหน้าสนับสนุนของเรา
Web-App-APP ของ VQ Support Web -App ไม่ได้รับการพัฒนาด้วยการสนับสนุนอย่างเต็มที่สำหรับหน้าจอมือถือเนื่องจาก VQ Labs ให้บริการโดย VQ Labs แยกกัน การพัฒนาปัจจุบันไม่ได้ทดสอบโดยเฉพาะบนหน้าจอมือถือ
อย่างไรก็ตามเว็บแอปมีจุดมุ่งหมายที่จะทำงานได้หลากหลายอุปกรณ์มือถือและขนาดหน้าจอ โปรดส่งปัญหาในหน้าสนับสนุนของเรา
https://vqlabs.freshdesk.com/support/home
เราทำตามรูปแบบการแยกสาขาต่อไปนี้: http://nvie.com/posts/a-successful-git-branching-model/
มิกซ์
VQ Labs