This is a fullstack web application developed with Go in the backend and React in the frontend.
It works by opening a websocket connection that is used to pass messages back and forth from both parts of the application in order to create real time chess matches.
-
Play chess online with other players in real-time
-
See the movement options for your pieces
-
Choose between light and dark modes
- Go - The programming language used for the backend
- React - The library used for the frontend
- WebSockets - The communication protocol used between the frontend and the backend
- PostgreSQL - The database system
-
Go 1.18 or higher
-
Gnu Make
-
Node.js
-
NPM
-
PostgreSQL
- Clone the repo
git clone https://github.com/pedro-git-projects/projeto-integrado-frontend
- Run the Makefile
make install
- Run the script to setup PostgreSQL
./database.sh
If the script fails with role "<\your user>" does not exist, make sure you have the adequate permissions to connect to PostgreSQL.
- Start the backend chess server
make run-chess
- Start the backend blog server
make run-blog
- Start the frontend server
make dev
Now you can access the application at http://localhost:5173/
-
Go to "/play"
-
Create a new room
-
Send the room code which is in the url to your friends
-
Play togheter