A Next.js web application for generating and displaying PromptPay QR codes for payment processing. This application is designed for shops, businesses, and individuals who want to accept payments through Thailand's PromptPay system.
Visit the live application at: https://jmrr.jrkitt.com/
- Generate PromptPay QR codes for payment
- Responsive web design
- Easy-to-use interface
- Support for various payment amounts
- Cross-platform compatibility
Before running this project, make sure you have the following installed on your system:
- Node.js (version 14.0 or higher)
- npm or yarn package manager
- Git for version control
- Download and install Node.js from nodejs.org
- Download and install Git from git-scm.com
- Open Command Prompt or PowerShell as administrator
# Using Homebrew (recommended)
brew install node
brew install git
# Or download from official websites
# Node.js: https://nodejs.org/
# Git: https://git-scm.com/# Update package index
sudo apt update
# Install Node.js and npm
sudo apt install nodejs npm
# Install Git
sudo apt install git
# Verify installations
node --version
npm --version
git --version# For CentOS/RHEL
sudo yum install nodejs npm git
# For Fedora
sudo dnf install nodejs npm git
# Verify installations
node --version
npm --version
git --versiongit clone https://github.com/jrKitt/JaiMaReawReawQrPayment.git
cd JaiMaReawReawQrPaymentChoose one of the following methods:
# Using npm
npm install
# Using yarn
yarn install# Using npm
npm run dev
# Using yarn
yarn devOpen your web browser and navigate to:
http://localhost:3000
JaiMaReawReawQrPayment/
├── public/ # Static assets
├── src/ # Source code
│ ├── components/ # React components
│ ├── pages/ # Next.js pages
│ ├── styles/ # CSS/styling files
│ └── utils/ # Utility functions
├── package.json # Project dependencies
├── next.config.js # Next.js configuration
└── README.md # Project documentation
In the project directory, you can run:
npm run dev- Runs the app in development modenpm run build- Builds the app for productionnpm run start- Runs the built app in production modenpm run lint- Runs the linter to check code quality
- Code Editor: Use VS Code, WebStorm, or any preferred editor
- Extensions (for VS Code):
- ES7+ React/Redux/React-Native snippets
- Prettier - Code formatter
- ESLint
- Fork the repository on GitHub
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git add . git commit -m "Add your commit message"
- Push to your branch:
git push origin feature/your-feature-name
- Create a Pull Request on GitHub
- Use consistent indentation (2 spaces)
- Follow JavaScript/React best practices
- Write meaningful commit messages
- Add comments for complex logic
- Test your changes before submitting
# Create production build
npm run build
# Start production server
npm run startThis Next.js application can be deployed on:
- Vercel (recommended for Next.js)
- Netlify
- Heroku
- DigitalOcean
- AWS
- Google Cloud Platform
Create a .env.local file in the root directory for environment-specific variables:
NEXT_PUBLIC_API_URL=your_api_url_here
# Add other environment variables as needed-
Port 3000 already in use:
# Kill the process using port 3000 # Windows netstat -ano | findstr :3000 taskkill /PID <PID_NUMBER> /F # macOS/Linux lsof -ti:3000 | xargs kill -9
-
Node modules issues:
# Delete node_modules and reinstall rm -rf node_modules package-lock.json npm install -
Permission errors on Linux/macOS:
# Fix npm permissions sudo chown -R $(whoami) ~/.npm
- Frontend: Next.js, React
- Styling: CSS/SCSS
- Package Manager: npm/yarn
- Version Control: Git
- User authentication system
- Payment history tracking
- Multi-language support
- Advanced QR code customization
- API integration for payment verification
- Mobile app version
- Phase 1: Core functionality improvements
- Phase 2: User management system
- Phase 3: Payment analytics dashboard
- Phase 4: Mobile application development
We welcome contributions from the community. Please read the contributing guidelines above and feel free to submit issues, feature requests, or pull requests.
This project is open source. Please check the LICENSE file for more details.
For support and questions:
- Create an issue on GitHub
- Check existing issues for similar problems
- Review the documentation thoroughly
- Built with Next.js framework
- Uses PromptPay QR code generation
- Inspired by the need for simple payment solutions
Note: This is a development project. Please ensure you comply with local regulations and PromptPay terms of service when using this application for commercial purposes.
