Code Monkey home page Code Monkey logo

Comments (7)

saskakol avatar saskakol commented on July 20, 2024 3

The UI with styling is now done. Next up upload, search and viewing. Viewing and upload I have a clear plan for, and therefore they should be quite straightforward to implement. Search is still a bit unclear. It is a necessary function, but it seems like making a decentralized database that can be searched is turning out to be harder than I thought.

from hackathon.

saskakol avatar saskakol commented on July 20, 2024 3

Uploading will be replaced by a set of pre-set images you can upload, due to a limitation with Status. The javascript code for uploading and converting to Base 64 will still be there, just commented out.

from hackathon.

commiteth avatar commiteth commented on July 20, 2024

Current balance: 0.00000000
Contract address: 0x3801e3f1709a75ded712b8f4699df67a6a1606df
QR Code
Network: Mainnet
To claim this bounty sign up at https://commiteth.com

from hackathon.

saskakol avatar saskakol commented on July 20, 2024

Uploading to swarm is now done. At the moment it can only upload the preset images (just a few random gifs I downloaded) but the logic is there for uploading custom ones too. Next up I'll need to create viewing, and the hardest part, search. Not exactly sure how Weipoint works, but if they are using a smart contract for storing data, I might have to take a note from their books.

from hackathon.

saskakol avatar saskakol commented on July 20, 2024

The bugs regarding uploading are now fixed. I had a weird problem with an error I didn't recognize, but turns out that all I had to do was use regular function notation instead of the new ES6 arrow shorthand notation. Viewing is now done, too. It uses a query string in the url, that is a Swarm hash. The page gets that hash and loads the JSON data, and displays it to the user!

There are a few graphical bugs with the layout on the upload page, but I'll fix those in no time.
Tipping should be fairly simple. I'll just create a transaction with a specific ETH amount entered by the user (most likely in szabos) and send it to the poster of the image (address recorded to Swarm).

Still not sure on how I'll tackle search. Most likely I'll try some sort of approach with a Smart Contract, hopefully not too complex.

Hopefully I'll have time to add some Status Commands too, like /search (query) and /upload.

Next I'll probably do some research on Solidity, since I've never written a smart contract before. I'll also have to try to get my Ethereum Wallet to work, to actually deploy the contract to Ropsten. Tipping will be a bit simpler though, so I might start with that instead.

from hackathon.

saskakol avatar saskakol commented on July 20, 2024

Tipping is now done. Now I have literally everything down, except for Status commands, and search.
Today I experimented with Solidity for the first time ever. I wrote my first, most likely terrible, contract. I can't find any existing examples for contracts that fit my needs for this dapp, which is a problem, since I only have so much time to get search working. Status commands at this point are not a priority, since without search, there's really nothing special to make a command of. I'm concerned I might not have enough time to finish with making a Smart contract, inserting data into it, and trying to get back that data so I can search it. If I don't finish search in time, the dapp will just feel... Incomplete, and that is definitely not something I want.
Hopefully two days will be enough!

from hackathon.

saskakol avatar saskakol commented on July 20, 2024

Fixed https issues and submitted again.

from hackathon.

Related Issues (20)

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.