elective-stereophonic
elective-stereophonic
NxtShop - to help working with the Nxt Marketplace
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: NxtShop - to help working with the Nxt Marketplace  (Read 3862 times)

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
NxtShop - to help working with the Nxt Marketplace
« on: January 27, 2015, 06:35:41 pm »

Hi Guys, I have been working with the Nxt Marketplace for some time now. But I see that not too much products are being listed. Maybe it is not so easy for the user to setup a Marketplace Item or too much work delivering each Item with the data etc.

I am trying to get something together, which aims to help working with the Nxt Marketplace. Mainly I am PHP dev, so I have chosen this as language for this project. And I could need some help, especially testing and feedback.
I would call the current version a "Proof-of-Concept" as a lot of things need and can be optimized, but it is a start.
The goal is that the user can setup a file which will be delivered in the delivery message without exposing the file location. A random string key will be generated which will be sent to the user. But the tool also provides the easy listening of items on any website. I have coded two example themes for now. So people could either see there how the Items can be taken from the blockchain (in the script) or modify one of those as template for a website

Every feedback and help is very appreciated, mostly regarding security, handling, design and occuring bugs.

Currently everything runs on testnet, you could set it up on main net but until testing phase is over not recommend.

I have created 3 example testsites with the tool today:

Selling articles: http://nxtpeers.com/articles/themes/Bootstrap-Blog1/

Selling cards: http://nxtpeers.com/cardgame/themes/Bootstrap-Shop1/

Reseller, sells Items from both accounts above, has access to none of the accounts. This testwebsite is interested in the articles and receives 2 NXT for every card Item sold on his website (just if the purchase tool from below is used):

http://nxtpeers.com/reseller/themes/Bootstrap-Shop1/

Purchases

Lets start, firstly I wanted to avoid to have to login, search for a seller or product in Nxt. So I have created a light plugin for the wesley client. Please extract and place this file (nxtshop.html) into your nxt folder: nxt/html/ui
(have not tested it with supernet yet, should be the same)

This makes sure, you submit your purchases on localhost with the functions of the wesley client

http://nxtpeers.com/nxtshop.zip

Start your Nxt client on testnet by setting nxt/conf/nxt-default.properties
Code: [Select]
nxt.isTestnet=true
If you have not been onto testnet for a long time, here is the database to make it quick: http://nxtpeers.com/nxt_test_db.zip

Now Browse the websites from above and start shopping ;)
« Last Edit: January 27, 2015, 10:56:31 pm by Tosch110 »
Logged

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #1 on: January 27, 2015, 06:35:47 pm »

Create a Follower / Website with Items from the Blockchain

Requirement: PHP / Mysql (or other database supported by PDO)

Currently how the tool works: You publish Items on the Nxt Blockchain as described in the wiki

Install the Nxtshop (currently lowest version, first beta, may still have bugs)

1) Download http://nxtpeers.com/nxtShop_v0.1.zip
2) Unzip and edit config/db_config.php with your database info (the database connection you have setup or received from your hoster)
3) Upload all the files to your webhoster / run /install afterwards, you should see a page where you can install the databases and setup your admin account
4) If you have testnet not running, it is no problem I have been using the following path as public Nxt testnode without problems:
http://104.155.222.127:6876/nxt
This method is ok with testnet. Not do this on mainnet!
5) Insert the account you have listed your Items with or use one of my testaccounts to stream the items: e.g. NXT-E5AN-BVCH-FFG3-B9SMN

Either use external links for images or upload them to /images and apply them directly as example intro-pic.jpg

Now setup how you want the Items to be displayed on the website.
« Last Edit: January 27, 2015, 07:16:01 pm by Tosch110 »
Logged

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #2 on: January 27, 2015, 06:35:52 pm »

Create A Seller / Merchant

Requirements: PHP / Mysql (or other database supported by PDO) / (Cronjob for automatic delivery)

From the admin page, you can guide to Merchant settings.

Here you can setup your files which are associated with the Items listed on the blockchain. As you enter your seller account (not necessary to have listed as follower or on the admin page), the Items will be listed. If you want to have automatic delivery, you need to store the sellers passphrase in the database you are using. This can lead to security problems. If your database is compromised, the passphrase can be leaked. Therefore it is recommended to use the Seller as "Hot Wallet", save bigger funds regularly.

Save the files (as .zip for now) in the folder /files via FTP or other methods you have at hand and tell which file should be given to the user as download. The text you input will be written above the download link. If you setup automatic delivery, it is important to setup a cronjob to merchant/automatic_delivery.php but this is also explained as you set it up.

Reseller / Discount Bonus

Why would anybody be interested in listening your Items? You can setup a reseller Bonus (some Nxt send via extra purchase) or discount (the discount function from the Nxt Marketplace) for any Item. These bonuses have to be setup manually and arranged with the reseller.
« Last Edit: January 27, 2015, 08:53:18 pm by Tosch110 »
Logged

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #3 on: January 27, 2015, 08:20:19 pm »

Please correct me if I got it wrong.

So, this NXTShop actually displays the products/items listed in individual NXT accounts.
The NXT accounts in which we have placed our items.
The same NXT accounts which we see in MarketPlace tab under NXT Client?

I'm sorry, I'm still getting to know properly with the functions of NXT. There are plenty of things I need to understand properly.

I'm for sure interested in NXT app development. And instead of centralized, I'd like to go for decentralized apps. But before that I need to clear the concepts of NXT, blockchain, storage in blockchain, data fetch/store etc. My intentions are to move away from the traditional PHP/MySQL development, and to get to decentralized app development.

Your project would be very helpful to understand these concepts. Thanks Tosch!!! :)
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #4 on: January 27, 2015, 08:39:42 pm »

Please correct me if I got it wrong.

So, this NXTShop actually displays the products/items listed in individual NXT accounts.
The NXT accounts in which we have placed our items.
The same NXT accounts which we see in MarketPlace tab under NXT Client?

I'm sorry, I'm still getting to know properly with the functions of NXT. There are plenty of things I need to understand properly.

I'm for sure interested in NXT app development. And instead of centralized, I'd like to go for decentralized apps. But before that I need to clear the concepts of NXT, blockchain, storage in blockchain, data fetch/store etc. My intentions are to move away from the traditional PHP/MySQL development, and to get to decentralized app development.

Your project would be very helpful to understand these concepts. Thanks Tosch!!! :)

Thanks for the feedback!

Exactly, you see the Items you have listed in your Nxt account. Here in the order:

1)


2)


3)


4)


5)Click on Magnetic Link to:


I am also trying to help with more decentralisation this way. The problem is the storage of data, which cannot be done on the blockchain so far. So this is a way in this direction

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #5 on: January 27, 2015, 08:43:39 pm »

Awesome!!

Your screenshots cleared the concept.

I'll review the code, and will see if I could add anything to it.

For now, I can only say that at least I can make custom theme for such website.

Cheers :)
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

grewalsatinder

  • Hero Member
  • *****
  • Karma: +89/-3
  • Offline Offline
  • Posts: 527
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #6 on: January 27, 2015, 08:44:36 pm »

Can you also tell one more thing?

How different is this project than NXT FreeMarket?
Logged
NXT-QK5L-7YM9-YPVF-55GL5 - Twitter: https://twitter.com/satindergrewal

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #7 on: January 27, 2015, 08:52:26 pm »

Can you also tell one more thing?

How different is this project than NXT FreeMarket?

I have never used Freemarket. But I think the concept is that you are hosting on a ebay like platform, especially build to sell physical items (with shipping). Freemarket is not build upon the Marketplace afaik, it uses Arbitrary Messages. I dont know how they would organize big files (100MB - whatver) to be hosted. Anyway, one of the purposes of my tool is that you can host your stuff your own. So you can apply any file size or kind of file.

I think with FreeMarket you have a good search engine with listenings, here you would have a webpage where you have to advertise on your own.

Ludom

  • Hero Member
  • *****
  • Karma: +197/-15
  • Offline Offline
  • Posts: 1733
    • View Profile
    • Plaisir & Valeur d'histoire
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #8 on: January 28, 2015, 10:55:53 pm »

This project is great. I really want that for NXTER.ORG!!

But I want it for my own business too. It's so fantastic!!!

If you want a real shop to make to make tests, you can make something with my own shop : http://www.tirodem.com/ph_thelia/ (currently, it's not a pretty shop and without Nxt inside)

I'm not a technician but if I can help ask me.
Logged
Support us to publish "The first book about Nxt"

AltcoinWarrior

  • Full Member
  • ***
  • Karma: +12/-3
  • Offline Offline
  • Posts: 140
  • NXT Evangelist
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #9 on: January 30, 2015, 10:39:37 am »

I will definitely give this a spin. Love the fact you can host your own files!
Logged

cr7yp

  • Full Member
  • ***
  • Karma: +14/-5
  • Offline Offline
  • Posts: 219
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #10 on: February 07, 2015, 08:31:38 pm »

Thanks Tosch for pointing me to your thread and script you've developed. It is not exactly what I looked for, but it's a promising approach for offering an own shop. Do I need to add the picture in the admin panel? I'll give it a try and implement it into a site I'll release soon.


« Last Edit: February 07, 2015, 08:34:21 pm by cr7yp »
Logged

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #11 on: February 07, 2015, 08:38:53 pm »

Thanks Tosch for pointing me to your thread and script you've developed. It is not exactly what I looked for, but it's a promising approach for offering an own shop. Do I need to add the picture in the admin panel? I'll give it a try and implement it into a site I'll release soon.

nice that you are trying it out! In the next release I will change some things and any feedback is very appreciated!

Yes, you can either upload images to your images/ location and load them locally or insert images from external sources so they will be displayed on the website.

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #12 on: February 24, 2015, 04:22:41 pm »

Thank you for all the feedback so far. After intense testing it seems to be working just fine. But I have realized that the first idea, to have the merchant and the website enabled to modify is just too much for a user to comprehend on the first view.

So I will change the concept und just concentrate on the sellings side for now. While creating a website out of this information will be handled in a second tool.

Also, the nxtshop (where you can click and buy (5) https://nxtforum.org/testnet/nxtshop-to-help-working-with-the-nxt-marketplace/msg156406/#msg156406) should be handled as plugin.

I hope this will all get more understandable then. I tried to put too much into a single tool for now. Therefore, some patience and the nxthsop merchant tool will be here soon. (Well, you can still download and use all of this, see first post.)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #13 on: October 02, 2015, 01:16:42 pm »

Hey Tosch110,

grewalsatinder point me over this post.

Well, I repeat what Ludom has already said. We would like to add this feature to Nxter.org

Any progress so far?

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NxtShop - to help working with the Nxt Marketplace
« Reply #14 on: October 02, 2015, 02:33:12 pm »

Hey Tosch110,

grewalsatinder point me over this post.

Well, I repeat what Ludom has already said. We would like to add this feature to Nxter.org

Any progress so far?

Yes, the Nxt Marketplace has a bunch of different setups you could use. I would say, let's have a talk about how you want to use the Nxt Marketplace and we could set this up on Nxter.org.

I contacted you in Slack
 

elective-stereophonic
elective-stereophonic
assembly
assembly