This is a proof of concept made for testing a GraphQL query made to a Strapi in order to retrieve a random color and change a cube's material in an Unity project.
This POC had two main goals:
1: To create a Strapi server and add some entries related to colors.
2: To create a Unity project that would make a GraphQL query and use the result to change a cube's color.
The NPM version that I had wasn't the right one, so the Strapi was giving me some errors. What I had to do was change the NPM version to 14.21.3, based on the NPM version listed on the package-lock.json.
All of the goals were achieved.
1: Strapi installation: run the following command: npm install strapi@latest -g
2: Creation of the project: run the following command and press enter into every step: strapi new StrapiServer
3: Entering the folder: just enter the folder with the following command: cd StrapiServer
4: Project's build: run the following command: npm run build
5: Enter the [admin webpage](http://localhost:1337/admin) and create an admin profile
6: Install the GraphQL: run the following command: npm install --save graphql
7: Enter the admin's Content-Types Builder and create the color type.
8: Add the colors according to your desire.
When downloading the repository, remeber to enter the StrapiServer folder via command line and run the following commands: npm install and npm run develop