Monynha Softwares Web Spark is a demo web application built with React, Vite and Supabase. It showcases common patterns such as authentication, data fetching and internationalisation using react-i18next. The project is configured to deploy automatically to Vercel via GitHub Actions.
- Install dependencies
npm install
- Create a
.envfile based on.env.exampleand provide your Supabase credentials.cp .env.example .env # edit .env and set VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY - Start the development server
npm run dev
The application will be available on http://localhost:5173 by default.
src/
components/ Reusable UI components
hooks/ Custom React hooks
integrations/ Third‑party integrations (Supabase)
pages/ Route components
lib/ Utility helpers
npm run dev– start the development servernpm run lint– run ESLintnpm run test– run unit tests (none at the moment)npm run build– create a production buildnpm run sitemap– generatepublic/sitemap.xml
Create a .env file in the project root with the following entries so the
Supabase client can connect to your instance:
VITE_SUPABASE_URL=<your-supabase-url>
VITE_SUPABASE_ANON_KEY=<your-anon-key>These variables match the placeholders in .env.example.
- React & Vite
- TypeScript
- Tailwind CSS & shadcn/ui
- Supabase
- React Query
Pull requests and pushes to main trigger the workflow defined in .github/workflows/deploy.yml. It installs dependencies, lints, runs tests, builds the project and deploys to Vercel. The following secrets must be provided in the GitHub repository settings:
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID
MIT