This project includes:
- A React front-end with Mapbox.
- A FastAPI back-end.
- A Rust WebAssembly module for pathfinding.
- A Python CLI using click.
- Docker configuration for containerized deployment.
-
Build the WASM module:
- Navigate to
/Users/cjacobson/git/NaviWasm/wasm - Run:
wasm-pack build
- Navigate to
-
Backend setup:
- Navigate to
/Users/cjacobson/git/NaviWasm/backend - Install dependencies:
pip install -r requirements.txt - Set environment variables in a
.envfile (see.env.sample).
- Navigate to
-
Frontend setup:
- Navigate to
/Users/cjacobson/git/NaviWasm/frontend - Run:
npm installthennpm run buildfor production build. - Serve the built files via a static server (or integrate with the backend).
- Navigate to
-
Docker Compose:
- From the project root, run:
docker-compose upto start all services.
- From the project root, run:
- Navigate to
/Users/cjacobson/git/NaviWasm/frontend - Run tests via:
npm test
- Ensure ESLint is installed:
npm install eslint --save-dev - Run:
npx eslint .from the frontend folder
- Integrate comprehensive unit and integration tests.
- Enhance WASM module with actual pathfinding logic.
- Configure CI/CD for automated builds and deployments.