GithubHelp home page GithubHelp logo

narcoticnarcoleptic / svelte-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghoulkingr/svelte-dapp

0.0 0.0 0.0 86 KB

A simple decentralised application using Svelte JS and Ethers JS

JavaScript 80.88% CSS 6.03% HTML 2.66% Solidity 4.56% Svelte 5.87%

svelte-dapp's Introduction

Svelte dApp project

This is a simple decentralised application (dApp) built using Svelte JS, Truffle, and Ethers JS. To run the application make sure you have the NodeJS and NPM installed.

If you don’t have truffle installed, run the below:

npm i -g truffle

You will also need ganache to run the local development node. If you don’t have ganache installed, run:

npm i -g ganache

Running the application

To run the application, you need to set up the local development node, deploy the smart contract, and launch the svelte project.

To start up the local development node, run:

ganache

To deploy the smart contracts, open the svelte-dapp project in another terminal and run the below:

truffle migrate

Copy the address of the contract in the output of truffle migrate:

Note: make sure that the address you copy is for the StoreMessage contract.

Before running the svelte project, open the dapp-frontend/src/contractData.js file, and change the value of address to the address that you copied. Then, open the dapp-frontend folder in the terminal and run the following to start up the svelte app:

npm run dev

svelte-dapp's People

Contributors

ghoulkingr avatar

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.