Giter Club home page Giter Club logo

cra-template-dfx's Introduction

DFX Template for Create React App

Three commands to get you creating frontend applications connected to DFINITY canisters

Requirements

1. Clone this repository

git clone https://github.com/taylorham/cra-template-dfx.git

2. Create an app

npm init react-app my-app --template file:./cra-template-dfx Or if you prefer yarn: yarn create react-app my-app --template file:./cra-template-dfx

Be sure to replace my-app with your app name and ensure the relative path to your newly cloned cra-template-dfx directory is correct.

3. Start developing

cd my-app && npm start

This spins up your dfx canister in the background and runs your React app with webpack-dev-server.

🎉   Special thanks to Mio Quispe for their work on create-dfinity-app as inspiration and groundwork!

cra-template-dfx's People

Contributors

krpeacock avatar taylorham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cra-template-dfx's Issues

Import error: 'ic:canisters/test' using default instructions

Hi, I followed instructions but am getting an error in the browser after npm start
I did not change anything, and followed the very straightforward instructions.

image

The test canister seems to be deployed. I tried following the individual instructions for building and installing, but same results.

Am I missing something obvious? or are there any more steps required. BTW am using Ubuntu.

yarn run eject ?

implement yarn run eject

yarn run v1.21.1 $ craco eject Unknown script "eject". Perhaps you need to update craco? Done in 0.07s.

craco version is 6.1.1
Version from my-app/node_modules/@craco/craco/package.json

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.