🏄‍♀️ Marketplace front-end and backend server to explore, download, and publish open data sets. https://commons.oceanprotocol.com
Go to file
Matthias Kretschmann f9717b84f2
Merge pull request #88 from oceanprotocol/fix/search
search updates for Aquarius 0.2.2
2019-04-09 12:08:54 +02:00
.github Added GH templates 2019-04-08 16:44:03 +02:00
client search updates for Aquarius 0.2.2 & pagination fixes 2019-04-09 11:59:29 +02:00
scripts Automatically deploy on new tags on k8s 2019-04-09 11:07:45 +02:00
server bump packages, update library.json 2019-04-08 11:04:52 +02:00
.bumpversion.cfg Bumped version to 0.1.2 2019-04-08 17:34:12 +02:00
.dockerignore docker-compose + dockerfiles 2019-04-04 11:30:31 +02: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 Automatically deploy on new tags on k8s 2019-04-09 11:07:45 +02:00
CHANGELOG.md add changelog 2019-03-22 10:05:25 +01:00
LICENSE one dev interface for client & server 2019-03-23 22:10:00 -03:00
README.md Added bumpversion notes to readme 2019-04-09 10:42:00 +02:00
bumpversion.sh Added bumpversion 2019-04-08 17:33:38 +02:00
docker-compose.yml Command in compose not needed with entrypoint 2019-04-05 11:59:26 +02:00
library.json bump packages, update library.json 2019-04-08 11:04:52 +02:00
package-lock.json rename to commons 2019-04-03 14:40:31 +02:00
package.json Bumped version to 0.1.2 2019-04-08 17:34:12 +02:00
tsconfig.json one dev interface for client & server 2019-03-23 22:10:00 -03:00

README.md

banner

Commons

Marketplace front-end and backend server to explore, download, and publish open data sets. https://commons.oceanprotocol.com

Build Status code style: prettier js oceanprotocol css bigchaindb

screen shot 2019-02-08 at 16 53 57

🦑🦑🦑 This marketplace is deployed under https://commons.oceanprotocol.com and can be used there. Feel free to report any issues you encounter. 🦑🦑🦑

If you're a developer and want to contribute to, or want to utilize this marketplace's code in your projects, then keep on reading.


This repo contains a client and a server, both written in TypeScript:

  • client: React app setup with squid-js, bootstrapped with Create React App
  • server: Node.js app, utilizing Express. The server provides various microservices, like remote file checking.

🏄 Get Started

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

npm install
npm start

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.

To make use of all the functionality, you need to connect to the Ocean network. By default, the client will connect to Ocean's Nile test network remotely.

🐳 Use with Barge

If you prefer to connect to locally running components instead of remote connections to Ocean's Nile network, you can spin up barge and use a local network:

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

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

Modify ./client/src/config/config.ts to use those local connections.

🛳 Production

To create a production build of both, the client and the server, run from the root of the project:

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.

🎁 Contributing

See the page titled "Ways to Contribute" in the Ocean Protocol documentation.

⬆️ Bumping version

Use the bumpversion.sh script to bump the project version. You can execute the script using {major|minor|patch} as first argument to bump the version accordingly:

  • To bump the patch version: ./bumpversion.sh patch
  • To bump the minor version: ./bumpversion.sh minor
  • To bump the major version: ./bumpversion.sh major

After that, you need to commit, push and git tag the commit if desired/needed.

Code Style

For linting and auto-formatting you can use from the root of the project:

# 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.