Available Scripts
npm start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
npm run build
Builds the app for production to the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
npm run serve
Runs the production bundle (created in command above) and serves static files, simulating a production server. This is helpful when testing and building things where "offline mode" is a feature being developed.
Scaffold project
npx @nmfs-radfish/create-radfish-app my-app
After creation, your project should look like this:
my-app
├── babel.config.js
├── index.html
├── mocks
│ ├── browser.js
│ └── handlers.js
├── node_modules/
├── package-lock.json
├── package.json
├── public
│ ├── icons
│ ├── manifest.json
│ ├── mockServiceWorker.js
│ ├── noaafavicon.png
│ └── robots.txt
├── src
│ ├── App.jsx
│ ├── index.css
│ ├── index.jsx
│ ├── pages
│ ├── service-worker.js
│ └── styles
└── vite.config.js