A Progressive Web App (PWA) built with Next.js that provides check-in functionality with offline support and API integration.
- Progressive Web App: Works offline and can be installed on mobile devices
- Check-in Functionality: Record your location with timestamps
- Offline Support: Continue using the app even without an internet connection
- Data Synchronization: Automatically syncs data when back online
- Responsive Design: Works on desktop and mobile devices
- Next.js
- TypeScript
- Tailwind CSS
- next-pwa (for PWA capabilities)
- GitHub Pages (for hosting)
-
Clone the repository:
git clone https://github.com/yourusername/pwacheckin.git cd pwacheckin -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
To create a production build:
npm run buildThe static files will be generated in the out directory.
This project is configured to automatically deploy to GitHub Pages using GitHub Actions. When you push changes to the main branch, the GitHub Actions workflow will:
- Build the Next.js app
- Deploy the static files to the
gh-pagesbranch - Make the app available at
https://yourusername.github.io/pwacheckin/
If you prefer to deploy manually:
-
Build the app:
npm run build
-
Push the
outdirectory to thegh-pagesbranch:git add out/ -f git commit -m "Deploy to GitHub Pages" git subtree push --prefix out origin gh-pages
src/app/: Next.js app directorysrc/app/page.tsx: Main page componentsrc/app/layout.tsx: Root layout componentsrc/services/: API and service functionssrc/types/: TypeScript type definitionssrc/utils/: Utility functionspublic/: Static assets and PWA files.github/workflows/: GitHub Actions workflow files
MIT