2018-11-07 12:24:53 +01:00
|
|
|
---
|
2018-11-07 15:51:17 +01:00
|
|
|
title: Set Up a Marketplace
|
2020-10-25 17:12:47 +01:00
|
|
|
description:
|
2018-11-07 12:24:53 +01:00
|
|
|
---
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
In Ocean, marketplaces and publishers are different roles. A common setup is for one organization to do both. We focus on that here.
|
2018-12-10 11:15:59 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
## The Steps
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
1. Develop the first cut of the app.
|
|
|
|
1. Prepare some initial data assets.
|
|
|
|
1. Deploy to production.
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
## Develop a First Cut of the App
|
2018-12-03 12:05:16 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
Here are some approaches:
|
2020-10-27 10:25:09 +01:00
|
|
|
-Fork [Ocean Market](/references/market/) code
|
|
|
|
-Do the [React App Tutorial](/tutorials/react-setup/) then grow your app from there. It uses [Ocean React hooks](/references/react/).
|
|
|
|
-Build up from [ocean.js](/references/ocean.js/) or [ocean.py](/references/ocean.py/) drivers
|
2018-12-03 12:05:16 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
## Prepare Some Initial Data Assets
|
2019-02-21 17:00:28 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
When you deploy, you'll want some initial data assets for your market to offer.
|
2019-02-21 17:00:28 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
Ocean supports several types, such as Azure and S3 storage. The [tutorials](/tutorials/) section provides more info.
|
2018-12-03 12:05:16 +01:00
|
|
|
|
2018-11-11 15:49:38 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
## Deploy to Production
|
2018-11-11 15:49:38 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
When developing your app, you'll likely use Barge to run all the Ocean Protocol components on your local machine.
|
2018-11-11 15:49:38 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
When it comes time to go to production, you will have to run these components:
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2019-04-10 15:19:00 +02:00
|
|
|
- Your marketplace/publisher app
|
2020-10-25 17:12:47 +01:00
|
|
|
- Aquarius (with Elasticsearch)
|
|
|
|
- Provider-py
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2019-04-10 15:19:00 +02:00
|
|
|
Of course, there are many other things that must be handled in production:
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2018-11-15 16:38:42 +01:00
|
|
|
- Security of the infrastructure where the software is running
|
|
|
|
- Monitoring
|
|
|
|
- Log aggregation, storage and search
|
|
|
|
- Handling crashes or other faults
|
2018-11-08 16:50:33 +01:00
|
|
|
|
2020-10-25 17:12:47 +01:00
|
|
|
Each of those is beyond the scope of these docs.
|