This repository contains the code used during the "Getting to know GraphQL" workshop.
- Clone this repository:
git clone https://github.com/PaquitoSoft/ps-graphql-tutorial-js.git
- Get into the root directory and install the dependencies
cd ps-graphql-tutorial-js
npm install
Run this command from the root directory
npm run dev
The command will start both the backend and the frontend:
- Backend: http://localhost:4004/graphql
- Frontend: http://localhost:4200/
You can use this commands to tests the projects:
# Run backend tests
npm run test:backend
# Run frontend tests
npm run test:frontend
# Run ALL tests
npm run test
Here are the lists of the main libraries used in this project.
- yoga: GraphQL server-side implementation
- @apollo/datasource-rest: Helper for implementing REST datasources (official docs)
- mongoose: MongoDB ORM
- react: UI rendering library
- tailwindcss: CSS utility classes
- @apollo/client: GraphQL client (official docs)
- @testing-library: Components testing helpers
- msw: HTTP mock server (both REST and GraphQL)
- jest: Tests runner