yarn
yarn dev
Open http://localhost:3000 with your browser to see the result.
Here is a working live demo : https://better-chat.vercel.app
- React
- Next.js
- Firebase
- Cypress (End to End Testing)
- ESLint
- Prettier
Using Next.js
to embrace lots of features with little or no configuration required, like server-side rendering capabilities, file-system based routing, code splitting, and other features we need for production.
Using ESLint
and Prettier
as the code linter and formatter to enforces a consistent style, find and fix problems.
Using Cypress
to test both logic and view, such as log in the chatroom, see and send messages.
- Auth is the login page, only support for
Google Login
currently. - After login, your
name
andemail
will display on the top right corner - You can
see
the latest 30 messages (if exist) by default - You can
see old messages
by tapping theLoad Previous
button - You can
send
any text or emoji to the chatroom by typing the message at the bottom of the input, then press enter or tap the send button to send it - If anyone else sends a message to the chatroom, you can see it rapidly without reloading needed