Coder Social home page Coder Social logo

icpunks's Introduction

ICPunks

ICPunks is a project to bring an analogue ERC-721 to Dfinity in order to faciliate creation of NFTs. This repository introduces NFT canisters by showing an implementation - ICPunks - a collection of 10,000 Dfinity punks, which will be available for free to claim by community.

In the current version 0.0.1, you’ll be able to compile the local copy of ICPunks together with Dfinity network and frontend running locally. Follow setup instructions below to run it.

This project is sponsored by the Dfinity Developer Grant Programme.

Screen after successful deployment, v.0.0.1

Installation

Prerequisites

Setup

Having dfx version 0.7.2 is important, it's an older version:

$ DFX_VERSION=0.7.2 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
$ dfx --version # check that version is 0.7.2

The first step to setup ICPunks locally is to clone this git repository:

$ git clone [email protected]:stopak/ICPunks.git
$ cd ICPunks

If you don't have vessel yet you can install it by running an install script included in this project:

# Install vessel
$ ./scripts/vessel-install.sh # This script gives error on ubuntu

This script does work on ubuntu

In case it doesn't work: https://github.com/dfinity/vessel/releases and put it in /usr/local/bin and do a sudo chmod +x on it

Double-check you have vessel installed at version 0.6.*, then clone this repository and navigate to the ICPunks directory

$ vessel --version
# vessel 0.6.0

Install all dependencies for UI

yarn # <- This installs packages from the lockfile for consistency
npm install # not sure if this is needed

Start a local Internet Computer replica.

$ dfx start --clean --background

Execute the following commands in another terminal tab in the same directory. (If you want to use internet-identity, skip this instruction and go to How to install local identity)

$ dfx deploy # This may take some time

This will deploy a local canister called icpunks_ui. To open the front-end, get the asset canister id by running dfx canister id icpunks_assets. Then open your browser, and navigate to http://<icpunks_assets-canister-id>.localhost:8000.

Frontend Development

To run a development server with fast refreshing and hot-reloading, you can use this command in the app's root directory:

$ sudo yarn run start

Your default browser will open (or focus) a tab at localhost:3000.

Now you can make changes to any frontend code and see instant updates, in many cases not even requiring a page refresh, so UI state is preserved between changes. Occasionally adding a CSS rule won't trigger an update, and the user has to manually refresh to see those changes.

icpunks's People

Contributors

przchojecki avatar mujtaba1747 avatar

Stargazers

 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.