Welcome to the GraphQL API Endpoint from the School Of Computer Science
git clone git@github.com:SchoolofComputerScience/scs-api.git.
cd scs-api.
npm install
npm run dev
navigate to localhost:5000/graph
-
First install npm-check-updates
npm i -g npm-check-updates -
Check for updates
ncu -
Add the update in package.json
ncu -u [packageName] -
Install the update
npm install
-
Node (https://nodejs.org/)
-
Express (https://expressjs.com/)
-
Sequilize (http://docs.sequelizejs.com)
-
GraphQL (https://graphql.org/)
Google Cloud Platform - App Flex - modify https://github.com/SchoolofComputerScience/scs-api/blob/master/app.yaml to configure service when deploying to GCP.
Travis (https://travis-ci.org/) is used to deploy straight to Google Cloud Platform after a Pull Request is accepted and merged.
-
https://github.com/SchoolofComputerScience/scs-api/blob/master/src/db.js - This file is used to connect to the database and define all relationship between Sequilize models (1-to-1, 1-to-many, many-to-many).
-
https://github.com/SchoolofComputerScience/scs-api/tree/master/src/queries - Sequilize queries that use models and GraphQL types to connect data from a relational database.
-
https://github.com/SchoolofComputerScience/scs-api/tree/master/src/models - Sequilize models used to model table structures from a relational database.
-
https://github.com/SchoolofComputerScience/scs-api/tree/master/src/types - GraphQL types used to model API Endpoints.
-
https://github.com/SchoolofComputerScience/scs-api/tree/master/src/content - Markdown files used for static content pages.