Project developed in order to improve software development skills. The project is based on the hangman game, known worldwide.
This project was developed with the following technologies:
- React
- Vite
- TypeScript
- Styled Components
- GraphQl
- Apollo Client
- Clone the repository
git clone https://github.com/igorssc/hangman-game.git
cd hangman-game
- Install dependencies
yarn
# or
npm init
-
Put your environment variables in a file .env at the root of the project
-
Start the server
yarn dev --port 3000
# or
npm run dev -- --port 3000
You can now access localhost:3000
from your browser.
To configure the content storage service, you must follow a few steps:
-
Go to the website https://hygraph.com and create a new project;
-
Create a schema model, named "Record", as in the image below:
- In the project settings, copy your Master Environment Url:
It will be used in the environment variables
- Create an Permanent Access Token:
- Change the permissions of your permanent access token, and leave it as below:
In this project, environment variables are used
, to connect with the content storage service hygraph.
For the correct operation of the system, the following environment variables must be used:
VITE_API_URL=your-hygraph-master-environment-url
VITE_API_ACCESS_TOKEN=your-hygraph-permanent-token
Access https://hangman-game-igorssc.vercel.app
This project is under MIT licence. See the archive LICENSE to more details.
Made with 💜 by IGS Design - Igor Santos 👋