Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.16 KB

File metadata and controls

40 lines (24 loc) · 1.16 KB

A web app for keeping track of tasks

Demo on phone

Setup

First, be sure mysql is running, npm install packages, and create an .env file based on .env.example.

Then start the server (npm run server) and app (npm start). Open localhost:3000 to view it in your browser. The page will reload when you make changes. Run with --demo arg to create demo data.

Git Hooks

Git hooks are configured to automatically:

  • pre-commit: Run Prettier on staged files
  • pre-push: Build the app and sync to Android

This ensures code is formatted and the Android app is up-to-date before pushing changes.

Android App

The front-end is configured to build as a native Android app using Capacitor. After making changes to the web app, rebuild and sync:

npm run build && npx cap sync android

The Android project is located in the /android folder. App configuration can be modified in capacitor.config.ts.

Open in Android Studio:

npx cap open android

Or build from command line (requires Android SDK):

cd android && ./gradlew assembleDebug