Reviews Api is an API for Grace Hopper Conference Reviews.
type Review @key(fields: "reviewId")
Installation (Required only if you are implementing the eventsAPI)
If you haven’t already done so, clone https://github.com/michelleFae/graceHopperApi (
git clone https://github.com/michelleFae/graceHopperApi). Make sure you have run
npm installat the top level of the directory, as per the instructions in the repository readme.
Then, clone your forked repo after navigating into the graceHopperApi/services directory:
e.g. On a terminal, write out:
cd services git clone https://github.com/YOUR-GITHUB-USERNAME/reviewsApi.git
Using the terminal, navigate to the reviewsApi directory in the services folder and run
cd services/reviewsApi npm install # needed if you want to test this service independently from other services
Begin looking through the code in the eventsApi subdirectory. You will need to change the files in the schema and the resolver folders only. It will be helpful to read through the other files in the subdirectory.
After you’ve filled in the missing code, you can test out your individual service using
npm run startwhen you are inside the reviewsApi subdirectory. You should see a message which looks like this:
? Reviews server ready at http://localhost:5003/ ✔️⭐
Write out a query to test your service. For example, running this should work.
You can use
Control+Cto terminate the server.
Push your code to your fork.
git add . git commit -m "implement reviewsAPI" git push origin main
Continue following the instructions on the graceHopperApi readme.
To use this API, follow the Running The Entire API section