Skip to content

Commit

Permalink
docs: update README (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszsokola authored Dec 25, 2023
1 parent 1a7c698 commit 33a62d0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
Binary file added .docs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 28 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# 2048-in-react

## Getting Started
[![Open issues][issues-badge]][issues-url]
[![CI][lint-badge]][lint-url]
[![CI][test-badge]][test-url]
[![TypeScript][typescript-badge]][typescript-url]

First, run the development server:
[![](.docs/demo.gif)](https://mateuszsokola.github.io/2048-in-react/)

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
## [Play 2048 💥](https://mateuszsokola.github.io/2048-in-react/)

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Features

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
- Fully-functional 2048 clone
- Animations
- Supports **keyboard**, **mouse** and **touch** events

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
## Development

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
_Easily set up a local development environment!_

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
Just start dev server on [localhost](http://localhost:3000):

## Learn More
- clone
- `npm install`
- `npm run dev`

To learn more about Next.js, take a look at the following resources:
**Start coding!** 🎉

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
## Contributing

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
All contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
[lint-badge]: https://github.com/mateuszsokola/2048-in-react/actions/workflows/lint.yml/badge.svg
[lint-url]: https://github.com/mateuszsokola/2048-in-react/actions/workflows/actions/workflows/lint.yml
[test-badge]: https://github.com/mateuszsokola/2048-in-react/actions/workflows/test.yml/badge.svg
[test-url]: https://github.com/mateuszsokola/2048-in-react/actions/workflows/test.yml
[issues-badge]: https://img.shields.io/github/issues/mateuszsokola/2048-in-react
[issues-url]: https://github.com/mateuszsokola/2048-in-react/issues
[typescript-badge]: https://badges.frapsoft.com/typescript/code/typescript.svg?v=101
[typescript-url]: https://github.com/microsoft/TypeScript

0 comments on commit 33a62d0

Please sign in to comment.