near / devrel

The space for DevRel
MIT License
9 stars 0 forks source link

Beta test `NEAR-CRA` #312

Closed thisisjoshford closed 3 years ago

thisisjoshford commented 3 years ago

Test out the new NEAR create-react-app template and provide feedback here.

BenKurrek commented 3 years ago

Great tutorial - I went through the readme exactly as a new user would and tried to come at it with a perspective of "I'm new to NEAR, how does everything work" and these are some of my comments:

doriancrutcher commented 3 years ago

Hey! Great Tutorial! The readme was very straightforward and I do appreciate how you explained what each line was doing in a concise way.

And I do really like how there are waaayyyyy less files to shift through in this version.

I do have some notes though:

First note

I definitely think for the readme tutorial I would have the dev run

yarn build yarn start

So they can see the frontend of the application as they are adding each step and interacting with the app

I personally would also add a detail of what wrapped NEAR is vs regular NEAR so that there’s no confusion between the two for new Devs

Step 3

Upon following step 3 I’m told to edit

src/App.js

The only file there is App.jsx which I think is fine just wanted to point out the typo

Something I wasn’t immediately clear on is if I was to take everything within that file and delete it and replace it with the screenshot below

image

Errors

How do I sign out? I tried clicking the sign in button again but it won’t let me logout

Upon making the contract call I run into this error

image

Questions

Where are the smart contract for these functions located?
Where do I go to add my own smart contract methods?