A delightful emoji-matching puzzle game built with Next.js and TypeScript. Match three similar emojis to create higher-level emojis and aim for the highest score!
1. Generate a Personal Access Token (PAT):
- Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click "Generate new token (classic)"
- Select scopes: repo
(Full control of private repositories)
- Copy the generated token immediately (you won't see it again!)
2. Clone the repository using the token:
bash
git clone https://[YOUR_PAT]@github.com/yourusername/EmojiTown.git
cd EmojiTown
Or store the credentials permanently:
bash
git config --global credential.helper store
git clone https://github.com/yourusername/EmojiTown.git
Enter your GitHub username and use the PAT as the password
2. Install dependencies:
bash
npm install
3. Build the production version:
bash
npm run build
4. Start the server:
bash
For development with hot reloading
npm run devFor production
npm start
The game will be available at http://localhost:3000
(or the next available port if 3000 is in use).
1. Install PM2 for process management (optional but recommended):
bash
npm install -g pm2
2. Start the server with PM2:
bash
pm2 start npm --name "emojitown" -- start
3. Configure PM2 to start on boot (optional):
bash
pm2 startup
pm2 save
Create a .env.local
file in the root directory with the following variables:
env
Port to run the server on (default: 3000)
PORT=3000Host to bind to (default: 0.0.0.0)
HOST=0.0.0.0
npm run dev
- Start development servernpm run build
- Build production versionnpm start
- Start production servernpm run lint
- Run ESLintnpm run type-check
- Run TypeScript type checkingMIT License - feel free to use and modify as you wish!
1. Fork the repository
2. Create your feature branch (git checkout -b feature/amazing-feature
)
3. Commit your changes (git commit -m 'Add some amazing feature'
)
4. Push to the branch (git push origin feature/amazing-feature
)
5. Open a Pull Request