1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
🏄‍♀️ Marketplace front-end and backend server to explore, download, and publish open data sets. https://commons.oceanprotocol.com
Go to file
2019-03-29 18:04:12 +01:00
client make AssetsUser component more usable 2019-03-29 18:04:12 +01:00
scripts package.json updates 2019-03-25 13:13:55 +01:00
server npm install 2019-03-25 16:26:26 +01:00
.editorconfig one dev interface for client & server 2019-03-23 22:10:00 -03:00
.eslintrc one dev interface for client & server 2019-03-23 22:10:00 -03:00
.gitignore one dev interface for client & server 2019-03-23 22:10:00 -03:00
.prettierignore one dev interface for client & server 2019-03-23 22:10:00 -03:00
.prettierrc one dev interface for client & server 2019-03-23 22:10:00 -03:00
.stylelintrc one dev interface for client & server 2019-03-23 22:10:00 -03:00
.travis.yml global build script 2019-03-23 22:18:53 -03:00
CHANGELOG.md add changelog 2019-03-22 10:05:25 +01:00
library.json one dev interface for client & server 2019-03-23 22:10:00 -03:00
LICENSE one dev interface for client & server 2019-03-23 22:10:00 -03:00
package-lock.json npm install 2019-03-25 16:26:26 +01:00
package.json package.json updates 2019-03-25 13:13:55 +01:00
README.md add prerequisites 2019-03-27 15:46:26 +01:00
tsconfig.json one dev interface for client & server 2019-03-23 22:10:00 -03:00

banner

commons-marketplace

Marketplace front-end and backend server to explore, download, and publish open data sets.

Build Status code style: prettier js oceanprotocol css bigchaindb

screen shot 2019-02-08 at 16 53 57

Prerequisites

To make use of all the functionality, you need to connect to the Ocean network.

For local development, you can spin up barge to use a local network:

git clone git@github.com:oceanprotocol/barge.git
cd barge

./start_ocean.sh --latest --no-pleuston --local-spree-node

The default configuration of the client & server is to connect to this local network. Modify ./client/src/config.ts, and ./server/src/config/config.ts to change that.

Get Started

To spin up both, the client and the server in a watch mode for local development, execute:

npm install
npm start

This will run both, client and server in development mode.
Open http://localhost:3000 to view the client in the browser.

The page will reload if you make edits to files in either ./client or ./server.

Production

To create a production build of both, the client and the server:

npm run build

Builds the client for production to the ./client/build folder, and the server into the ./server/dist folder.

Testing

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Code Style

For linting and auto-formatting you can use:

# auto format all ts & css with eslint & stylelint
npm run lint

# auto format all ts & css with prettier, taking all configs into account
npm run format

License

Copyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.