Giter Club home page Giter Club logo

singnet / dev-portal Goto Github PK

View Code? Open in Web Editor NEW
109.0 27.0 52.0 58 MB

The SingularityNET Developer Portal where you can find all our documentation, tutorials, and developer resources!

Home Page: https://dev.singularitynet.io

HTML 34.48% JavaScript 2.98% Dockerfile 6.51% Shell 13.40% Python 1.01% Go 5.83% C++ 0.90% Java 1.32% Jupyter Notebook 9.30% Gherkin 0.22% Ruby 0.68% SCSS 23.36%
documentation developer-portal tutorials resources singularitynet snet-platform

dev-portal's Introduction

logo

Welcome to the SingularityNET Developer Portal.

Our Developer Portal provides documentation about the SingularityNET Platform and Marketplace. You will learn how to build and access AI services that are published onto the network as a service developer or as an end-user of services that other people have published.

Overview

If you are just starting out, read the getting started page.

If you are already familiar with Blockchain technology like MetaMask and Ethereum then you may want to skip immediately to browsing the beta Marketplace.

Setup

We welcome external contributions to our documentation, such as corrections, improvements, new tutorials, or any other suitable addition.

Please find our contribution guidelines here.

If you want to host the developer portal locally, or help us improve our documentation, here's what you need to install, assuming you already have ruby:

gem install --user-install jekyll
gem install --user-install jekyll-paginate
gem install --user-install jekyll-sitemap
gem install --user-install jemoji
git clone https://github.com/singnet/dev-portal.git
cd dev-portal
jekyll serve

if you get the following error

<internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- webrick (LoadError)

then install the webrick gem using the command

gem install webrick

Before making a pull request, please also check all links are valid:

gem install --user-install html-proofer
htmlproofer ./_site/ --only-4xx --empty-alt-ignore

Stay up to date

In order to receive SingularityNET Developer Updates you can subscribe here.

dev-portal's People

Contributors

arturgontijo avatar astroseger avatar challaprabhu avatar dhivakharvenkatachalam avatar edyirdaw avatar elggem avatar ferrouswheel avatar ibbybenali avatar ksridharbabuus avatar ngeiswei avatar pennachin avatar raamb avatar rajeevbbqq avatar ramongduraes avatar semyon-dev avatar serbinadrian avatar sreeshnap avatar sujithvarma avatar susmithageek1 avatar ternik avatar vinthedark avatar vivek205 avatar vsbogd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dev-portal's Issues

Remove unnecessary html from markdown files

We have a lot of markdown files that are actually raw html under docs/contribute/.

These should be converting to normal markdown so that we can maintain their content more easily.

[VIDEO 1] Introduction to the SingularityNET concepts and components

Provide setup instructions for OSX and Windows

Testing Environment:

Windows 10, Google Chrome 73.0.3683.86 (64bit), 15.6", 1920х1080

Proposition for improvement:

I think that detailed instruction for setup on Windows and MacOS are needed on that page
https://dev.singularitynet.io/docs/setup/requirements/
Also distributives for Python and Node.js are downloaded as easy to use installers but SNET CLI and SNET Daemon are downloaded as archives / folders. So it would be more convenient if their installation would be more intuitive too, like in case with Python and Node.js.

Optimize content that repeats

the idea here is to move the content which repeats across different personas in to one central place and replicate it through a scritp during deployement .
un referenced MD will also be deleted soon

Wrong command for Docker containter building (bug)

On that page
https://dev.singularitynet.io/tutorials/publish/
we have such command
docker build -t snet_publish_service https://github.com/singnet/dev-portal.git#master:/tutorials/docker

As I understood from the discussion with developer it would be safer to replace it with such command
sudo docker build -t snet_publish_service https://github.com/singnet/dev-portal.git#master:/tutorials/docker

Because when I used the first command without sudo I wasn't able to build the container for sure

Confirm that sdk example works

Put together code in tutorials/sdk.md, but that was before the PR was merged.

There should also be a warning on this page that the SDK is still in development and is liable to change.

Review "Create a Wallet"

The first step in setup is "/docs/setup/create-a-wallet.md".

This is very basic at the moment, but would be a good place to introduce some Ethereum concepts or link to further reading about it. (what is a "wallet" vs "address", keeping your key secret etc)

Small text nuance on "How to Create a Wallet" (question / enhancement)

I am not a native speaker so maybe I could misunderstand something here but according to the context "the above steps" in "If you are interested in using the Ropsten network for testing the platform with testnet tokens, please continue reading the above steps" should point to some info above that phrase while in the context of this page the info is actually below this statement.

Different commands for the same operation on two pages (bug)

On that page
https://dev.singularitynet.io/docs/setup/call-a-service/
we can such command for installing SNET CLI
pip install snet-cli

But on that page
https://dev.singularitynet.io/docs/setup/requirements/
there is another command for the same operation
sudo pip3 install snet-cli

As I understand
sudo pip3 install snet-cli
is the right one

In any case it's better to keep to approach of consistency when we have same commands for specific operations / same links to the specific resources and so on (on different pages of Dev Portal)

Listing commands for Docker installation right on the Dev Portal (enhancement)

I can see the link to
https://docs.docker.com/get-started/
on that page
https://dev.singularitynet.io/tutorials/publish/

Just that maybe it can be good to mention several simple commands for basic Docker installation on this page of Dev Portal?
To give developers a possibility to not dive too deep into it but just install the Docker and proceed further

Though the link "Get Started Guide" to the Docker can be left to provide quick access to detailed information if it will be interesting for specific developer

Remove docs/all/archive?

I don't think we need to keep this very early documentation around, and if we need it it'll be in the repo history.

Lots of directories with nothing but an index.md

We have some pages that unnecessarily use directories, making it annoying to edit content. In editor tabs it shows up as lots of index.md files opened.

People should use directories only if needed. e.g. there is associated content (some of the tutorials) or there is a nested structure to the content itself.

Even for associated content, I think it'd be better to keep our documentation separate from the actual scripts and code.

These guidelines should be added to #37 if agreed upon.

Quick edit of page

This page discusses how to insert a edit link to github source.

The code to add to our layouts is:
<a href="{{ site.github.repository_url }}/tree/master/{{ page.path }}">Edit</a>

I feel like this should be at the top of the page so it's visible, but out of the way. Maybe just a pen icon below the contents that get displayed on the right-hand side?

Text nuances on Marketplace page (enhancement / question)

I am not a native speaker but I have such thoughts: maybe it's good to

  1. Replace this
    The SingularityNET Marketplace provides an easy way for people browse available AI services and interact with them via a web interface.
    with that
    The SingularityNET Marketplace provides an easy way for people to browse available AI services and interact with them via a web interface.

  2. Remove "and" in the end of this point
    "allows consumers to rate services they have used; this is a simple rating component that will eventually be replaced by SingularityNET’s Reputation System (currently under development); and"

  3. Write Ethereum from capital letter here
    "The Marketplace is a DApp, which means in order to use it you need to install a ethereum browser extension like MetaMask."

  4. Replace this
    In the context of the marketplace it lets you query what services are available, transfer AGI funds into escrow, and setup payment channels that allow you call any of the listed services.
    with that
    In the context of the marketplace it lets you query what services are available, transfer AGI funds into escrow, and setup payment channels that allow you to call any of the listed services.

  5. I am not sure if this phrase will be completely clear for everyone (mainly about certbot and letsencrypt). Maybe it would be much more evident for the developers but still.
    Ensure you are using SSL with the snet-daemon. We recommend using certbot and letsencrypt if you don’t already have a SSL certificate.

Purge duplicated files and content

We have a lot of duplicated files and content which makes the dev portal a pain to maintain.

e.g docs/all/mpe/front-to-back-examples/scripts/example1/example.md vs docs/all/mpe/front-to-back-examples/scripts/example1/index.md

There's also a lot of other content that's been copy-pasted around the place for no particular reason. Please stop and consider why you are copy and pasting content. If it belongs in a new place, then consider deleting where it came from or writing it to be specific to the current article.

Excessive spaces around "=" in the last command on "Setup requirements" page (bug)

Testing Environment:

Windows 10, Google Chrome 73.0.3683.86 (64bit), 15.6", 1920х1080

Precondition:
User has 2 AGI on Escrow Balance

Steps to reproduce:

  1. Navigate to https://dev.singularitynet.io/docs/setup/requirements/
  2. Try to execute all commands from the instruction in the terminal on Linux
  3. Observe the result

EXPECTED RESULT:

All commands are executed properly after copy-paste to the terminal

ACTUAL RESULT:

The last command "export USER_ID = $USER" isn't executed properly because it has excessive spaces around "=" while all other commands don't have it

Landing page improvements

  • Only show three cards for "Core Concepts", "Setup Guide", and "Tutorials"
  • Remove "All Docs" and "View on Github" buttons
  • Reduce white space in header at home page so that three cards are visible on laptop sized screen.

[VIDEO 5] Service requirements and guidelines

Fill in Step 3 and Step 5 for "Call a Service"

These are how to use the dapp (step 3) and snet-cli (step 5) to call a particular service.

  • the dapp needs a video and/or screenshots.
  • snet-cli needs to show the command and output verbatim.

We should use the same service (snet/example-service) for each.

"Edit" button, TODO and similar things on the pages of Dev Portal (enhancement / bug)

  1. You can see "Edit" button on this page for example
    https://dev.singularitynet.io/docs/setup/

I suppose that this button is present here just for the convenience of developers, like to have a possibility to quickly switch to the source of the page. If it's correct then ofc I think that it would be better to finish some related works soon and to remove this button. Because as I understand it's not necessary for the users and the portal should be perceived as some finished product in my view. Although it's totally ok to update the info iteratively and to extend it later.

  1. I can see some "TODO" blocks, for example, on that page https://dev.singularitynet.io/docs/setup/call-a-service/
    I guess it's the similar issue as with "Edit" button
    So these blocks indicate for the developers that something is "to be completed" later
    But as I remember the developer portal is live for 6 months so I suppose that it's good to keep the pages without such blocks or make it a bit more accurate somehow
    Otherwise it produces an impression of some draft while the website is actually live and it's open to the public

  2. On that page
    https://dev.singularitynet.io/tutorials/sdk/
    I can see such command with additional phrase
    pip install snet-sdk (check this is correct)
    So I guess it's the same situation here, it would be nice if such questions can be clarified and removed as soon as possible

Different faucets for Ropsten ETH on different pages (enhancement)

On the page
https://dev.singularitynet.io/docs/setup/create-a-wallet/
we have such phrase
"Users are required to visit a Ropsten Faucet, which is a per-request Ropsten Ethereum distribution hub."
Ropsten Faucet is a link here which leads to https://faucet.metamask.io/
While on the page
https://dev.singularitynet.io/docs/setup/call-a-service/
we have such phrase
"Luckily for test networks you can go to a faucet to request some Ether for free."
Here "go to a faucet to request some Ether for free" is a link to https://faucet.metamask.io/
So I suppose that it can be good to make this link consistent throughout the whole website
I mean to provide the link to the same Ropsten ETH on all pages where it's necessary or provide two links together on all these pages to give users a choice between these faucets.

Remove "Repository Structure" and "Planning" from Getting Started

It is just extra noise to list the dev-portal repo structure for someone who is just trying to get started with SingularityNET.

Maybe "Repository Structure" is useful for someone who wants to contribute to the documentation, but not in the "Getting Started page" that should optimise for getting people working with the platform as fast as possible.

The high-level "Planning" section is also of almost no utility to someone just trying to use SingularityNET. It should be moved to an "About" page if needs to be on the dev portal at all.

Expand on contributing guidelines

Ask people to:

  • use consistent tabs vs spaces
  • don't insert BOM headers into files which prevents Jekyll compiling them.
  • use markdown over raw html (#32)
  • don't create directories with only an index.md (#38)

Re-enable page comments?

I disabled all comments in 9efeb87

This is because the comment iframe shows up with an "Error embedding" message, and complains about the discourse forum having the wrong origin policy.

I think there was a question about whether we still wanted comments on every page, but if we do then someone will need to investigate what is causing the error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.