1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/documentation/build-a-marketplace/deploying-market.md
Andrea Armanni 95a1dd1a44
Added documentation (#2025)
* Added documentation

* Removed relative URLs and updated links

* Update README.md
2024-05-09 12:40:59 +03:00

41 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Deployment of Ocean Market
description: Step by step guide to a quick deployment of Ocean Market
---
# Build and host your Data Marketplace
All thats left is for you to host your data marketplace and start sharing it with your future users.
## **Build and host your marketplace using surge**
To host your data marketplace, you need to run the build command:
```bash
npm run build:static
```
This takes a few minutes to run. While this is running, you can get prepared to host your new data marketplace. You have many options for hosting your data marketplace (including AWS S3, Vercel, Netlify and many more). In this guide, we will demonstrate how to host it with surge, which is completely free and very easy to use. You can also refer to this tutorial from the infrastructuree section as well if you want to deploy your market in you own infrastructure using docker.
Open up a new terminal window and run the following command to install surge:
```bash
npm install --global surge
```
When this is complete, navigate back to the terminal window that is building your finished data marketplace. Once the build is completed, enter the following commands to enter the public directory and host it:
```bash
cd out
```
```bash
surge
```
If this is your first time using surge, you will be prompted to enter an email address and password to create a free account. It will ask you to confirm the directory that it is about to publish, check that you are in the market/public/ directory and press enter to proceed. Now it gives you the option to choose the domain that you want your project to be available on.
We have chosen https://crypto-photos.surge.sh which is a free option. You can also set a CNAME value in your DNS to make use of your own custom domain.
After a few minutes, your upload will be complete, and youre ready to share your data marketplace.