This is a React + Redux app which is used on mobile phones to send up-to-date status updates of outdoor sporting facilities to a compatible observations REST API.
Node.js version 18
Copy .env.example to .env and edit the API_URL variable to point to the correct API root or use the API_URL environment variable.
Run npm install
Run npm start
This project supports incremental TypeScript migration alongside JavaScript. You can create new components as .tsx files or gradually convert existing .js files to TypeScript.
Run npm run typecheck to check TypeScript types without emitting files.
- Use
.tsxfor React components with TypeScript - Use
.tsfor utility files, actions, reducers with TypeScript - Existing
.jsand.jsxfiles continue to work unchanged
- Start with simple components that have no props
- Convert components that already have PropTypes defined
- Add type definitions for Redux state and actions
- Gradually convert remaining components
The build system automatically handles both JavaScript and TypeScript files.
- Important! Update the version in
src/pulkka.appcache - Run
npm run build. - Deploy the contents of the dist folder as static files.