Giter Club home page Giter Club logo

impactmarket's Introduction

theDOJO v1.1

image

@title : theDOJO v1.1

@author : stereoIII6

@coAuthor : xnode

@company : fractio incorporated

@emails : [email protected], [email protected]

@about : theDOJO is a vanilla truffe web3 scaffolding setup that allows an easy quick setup for defi projects and dapps. It uses the most basic setup but allow complex projects without overbloated npm libraries noone can keep up to date with all the modern features that other frameworks on npm deliver.

@devtech : truffle, solidity, javascript, json, html, css

Software Requirements

NodeJS@17 & NPM@8

Git@2

Trufflle@5

Firefox or Brave Browser & Metamask Extension

You should be ready to go !

Installation

Install Truffle npm i -g truffle

Create a directory mkdir ROOT_DIR

navigate into it cd ROOT_DIR

clone the repo into the directory git clone .

Install Repo Dependencys and Node Modules npm i

fix webpack issues type export NODE_OPTIONS=--openssl-legacy-provider in root dir this step might have to be repeated after restarting your production environment

Initialization

You will need to open .conf_env and edit the seedphrase, admin address &

Your private infura api code from https://infura.io needs to be added inside

finally save the file as .env in the root dir.

:: CAUTION : make sure not to leave sensitive data in any file but .env. In production these values will have to be hidden server vars. Only use Mumbai Testnetwork until you know what you are doing. Be cautionate about which seedphrase and admin account you intend to use for which project to protect your funds. ::

Then you will need to compile and migrate the contracts npm run migrate:<network> you can choose from main, polygon, mumbai, optimism & arbitrum to migrate the contracts onto the wanted chain/s.

Operation

Run project in local environment npm run dev in root directory from terminal.

You will be kicked to -> http://localhost:8080 automatically.

If you edit the sourcecode your Server automatically updates the website on save.

Directory Structure & Important Files

: build // build dir
:: contracts // abi build dir
::: soxiety.json // contract data incl abi

: contract
:: s0xiety.sol // smart contract

: src // source code dir JS
:: app.js // project Source JS (CODE HERE)
:: three.js // threejs based 3d bg animation (CODE HERE)

: migrations // blockchain migration dir
:: 1_initial_migration.js // migration init
:: 2_deploy_s0x.js // smart contract migration conf

: public // source dir HTML
:: images
::: favicon.png // page favicon
::: logo.png // website logo
:: cols
::: dark.scss
::: irie.scss
::: light.scss
::: metal.scss
::: woody.scss
:: app.html // source code HTML (CODE HERE)
:: app.scss

: package.json // npm config
: package-lock.json
: truffle-config.js // truffle config
: webpack.config.js // webpack config 

: .conf_env // default hidden vars envelope preset
: .env // hidden vars envelope
: .gitignore // git ignore file list

Minimum Dependencies

@metamask/detect-provider @openzeppelin/contracts @openzeppelin/test-helpers @truffle/hdwallet-provider bignumber dotenv ethers ipfs-http-client gridjs mocha sass underscore

impactmarket's People

Contributors

stereoiii6 avatar

Watchers

 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.