Now Experience Notes
I was following along with Upside-down Andrew’s posts and taking notes trying to get a now-expierence component to work.
Here’s my notes;
Checked version of node;
node --versionit’s at 12.16.1Checked version of npm;
npm --versionit’s at 6.13.4 (howver there’s a upgrade to 6.14.4)Checked version of now-cli;
now-cli --versionit’s at 17.0.2Created folder/repository to render a joke from joke.jace.pro
Created README.md file with aweseome contnet (thanks AAD)
Staged my commit of the update to README.md
Created Repository on Github https://github.com/jacebenson/now-joke
Added SSH Repository link
Ensured
[email protected]:jacebenson/now-joke.gitis returned whengit remote show origin- If you don’t have SSH configured with Git, you’ll want to undo the git url and use https instead… really set up SSH
- Github’s docs to do this
Push your either by
git push -u origin remoteor with buttons in VS Code. You should see the file on github.com with it’s contentsYou need an empty to build the project, so lets delete that README.md… you can do that by typing
rm README.mdNow we can create the project, I ran
now-cli project --name "@jace/now-joke" --description "It's what it says on the lid"It created the scaffolding, you’ll need to do a
npm installornpm ito install the package.json dependenciesWe can finally Start rendering something… run
now-cli develop --openEdit the
./src/x-1234-your-component/index.jsline 7 to say something, your browser should update