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 --version
it's at 12.16.1 - Checked version of npm;
npm --version
it's at 6.13.4 (howver there's a upgrade to 6.14.4) - Checked version of now-cli;
now-cli --version
it's at 17.0.2 - Created 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
git@github.com:jacebenson/now-joke.git
is 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 remote
or with buttons in VS Code. You should see the file on github.com with it's contents - You need an empty to build the project, so lets delete that README.md.... you can do that by typing
rm README.md
- Now 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 install
ornpm i
to install the package.json dependencies - We can finally Start rendering something.... run
now-cli develop --open
- Edit the
./src/x-1234-your-component/index.js
line 7 to say something, your browser should update