lucasmmg1 / StrapiGraphQL_PoC_v1

Repository for the v1 of Venosa's Strapi Server with GraphQL POC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Proof of Concept: Strapi server with GraphQL query

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.

Goals

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.

Problems

Problem 1: The NPM version

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.

Achieved

All of the goals were achieved.

Steps

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.

Observations

When downloading the repository, remeber to enter the StrapiServer folder via command line and run the following commands: npm install and npm run develop

About

Repository for the v1 of Venosa's Strapi Server with GraphQL POC


Languages

Language:JavaScript 99.2%Language:C# 0.7%Language:HTML 0.1%Language:CSS 0.0%