2019-01-23 11:26:13 +01:00
|
|
|
[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)
|
|
|
|
|
|
|
|
<h1 align="center">commons-marketplace</h1>
|
|
|
|
|
2019-01-24 14:01:00 +01:00
|
|
|
> Marketplace front-end to explore, download, and publish open data sets.
|
2019-01-23 11:26:13 +01:00
|
|
|
|
2019-01-24 14:01:00 +01:00
|
|
|
[![Build Status](https://travis-ci.com/oceanprotocol/commons-marketplace.svg?token=3psqw6c8KMDqfdGQ2x6d&branch=master)](https://travis-ci.com/oceanprotocol/commons-marketplace)
|
2019-01-23 11:26:13 +01:00
|
|
|
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-7b1173.svg?style=flat-square)](https://github.com/prettier/prettier)
|
|
|
|
[![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol)
|
|
|
|
[![css bigchaindb](https://img.shields.io/badge/css-bigchaindb-39BA91.svg)](https://github.com/bigchaindb/stylelint-config-bigchaindb)
|
|
|
|
|
|
|
|
- [Development](#development)
|
|
|
|
- [Testing](#testing)
|
|
|
|
- [Code Style](#code-style)
|
|
|
|
- [License](#license)
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-02-08 16:55:36 +01:00
|
|
|
<img alt="screen shot 2019-02-08 at 16 53 57" src="https://user-images.githubusercontent.com/90316/52489283-27080e80-2bc2-11e9-8ec0-508c21eb86f7.png">
|
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
## Development
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 13:03:41 +01:00
|
|
|
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
```bash
|
|
|
|
npm start
|
|
|
|
```
|
2019-01-18 17:34:40 +01:00
|
|
|
|
|
|
|
Runs the app in the development mode.<br>
|
|
|
|
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
|
|
|
|
|
|
The page will reload if you make edits.<br>
|
|
|
|
You will also see any lint errors in the console.
|
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
```bash
|
|
|
|
npm run build
|
|
|
|
```
|
2019-01-18 17:34:40 +01:00
|
|
|
|
|
|
|
Builds the app for production to the `build` folder.<br>
|
|
|
|
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
## Testing
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm test
|
|
|
|
```
|
|
|
|
|
|
|
|
Launches the test runner in the interactive watch mode.<br>
|
|
|
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
## Code Style
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
For linting and auto-formatting you can use:
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
```bash
|
2019-02-07 11:28:04 +01:00
|
|
|
# auto format all ts & css with eslint & stylelint
|
2019-01-23 11:26:13 +01:00
|
|
|
npm run lint
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
# auto format all ts & css with prettier, taking all configs into account
|
|
|
|
npm run format
|
|
|
|
```
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
## License
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
```text
|
|
|
|
Copyright 2018 Ocean Protocol Foundation Ltd.
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
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
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-01-23 11:26:13 +01:00
|
|
|
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.
|
|
|
|
```
|