1. Environment Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Make sure your development environment includes and an npm package manager.
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.
If you use npm 5.1 or earlier you can't use npx. Instead, install create-react-app globally:
And you can start by typing:
Then open to see your app.
Testing HATs are configured to support requests from by default. If you run the project locally on a different port, the requests will not come through by the CORS policy.
Now you can install the 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.