1. Environment Setup
To check if you have Node.js installed, run this command in your terminal:
To confirm that you have npm installed, you can run this command in your terminal:
You'll need to have Node v8.16.0 or Node v10.16.0 or a later version on your machine.
npx create-react-app my-first-hat-app
If you use npm 5.1 or earlier you can't use npx. Instead, install create-react-app globally:
npm install -g create-react-app
And you can start by typing:
Now you can install the HAT-JS:
npm install @dataswift/hat-js
You'll need to restart the server every time you install a package using npm. You can use Ctrl + C to stop the server and npm start to start the server.