Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggy committed Mar 27, 2020
1 parent 0684ff7 commit 1d1f1ce
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,33 @@

A marketplace which stores examples and job templates of openpai. Users could use openpaimarketplace to share their jobs or run-and-learn others' sharing job.

## get started
## Components

1. [start rest server](./rest_server/README.md)
There are two components of openpaimarketplace, [rest server](./rest_server/README.md) and [webportal plugin](./webportal_plugin/README.md), which are responsible for backend service and frontend usage seperately. Please could check the two folders for more detail.

2. [start webportal plugin](./webportal_plugin/README.md)
## Get started

3. configure in pai webportal and use
- [start rest server](./rest_server/README.md)

When deploy pai webportal, configure marketplace webportal plugin in advance, then the marketplace could be used through pai webportal. For more detail, please refer to [webportal configuration doc](https://github.com/microsoft/pai/blob/master/docs/webportal/PLUGINS.md)
- [start webportal plugin](./webportal_plugin/README.md)

- configure in pai webportal

When deploy pai webportal, configure marketplace webportal plugin in advance, then the marketplace could be used through pai webportal. For more detail, please refer to [webportal configuration doc](https://github.com/microsoft/pai/blob/master/docs/webportal/PLUGINS.md)

## Code style check of webportal

This project use eslint with standard config as linter and prettier as code formatter.

Pleae refer to eslint config file and prettier config file for details. Make sure to run yarn lint command every time before you push your code, and resolve all the errors and warnings. Otherwise it will break the CI check when you submit your pull request.

If you use modern editors like VS Code. It is highly recommends to install eslint and prettier extensions.

How to do code format with prettier? You could use cli like prettier --write 'src/**/*.js' 'src/**/*.jsx' or use prettier extension in vscode.

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.

Expand Down
6 changes: 3 additions & 3 deletions rest_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

The rest server of openpai-marketplace. It is the api service to use openpai marketplace.

## get started
## Get started

1. deployment
- deployment

The rest server uses PostgreSQL database as storage. So you should firstly ensure a working PostgreSQL database and set the connection string in rest server .env file. For install and start postgre database, please refer to [official doc](https://www.postgresql.org/download/)

Expand All @@ -16,6 +16,6 @@ The rest server uses PostgreSQL database as storage. So you should firstly ensur
- yarn start
```

2. test api
- api specification

Please refer to [openapi spec](./marketplace_api_spec_3.0.yaml) for marketplace api.
2 changes: 1 addition & 1 deletion webportal_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The rest server of openpai-marketplace. It is the main entrance for pai user to use openpai marketplace.

## get started
## Get started

The deployment of webportal plugin used webpack-dev-server to hold static plugin.js file by default. However you could use webpack to build plugin.js file and render it by your own service.

Expand Down

0 comments on commit 1d1f1ce

Please sign in to comment.