.githooks
contains the githooks for enforcing style and testingnode_modules
contains installed npm packagesprisma
contains the prisma configs and generated typescript clientsrc
contains the source code for the graphql serverresolvers
contains the graphql resolvers for the appconstants.js
contains some global constantsindex.js
is the main entry point of the serverschema.graphql
defines the server APIutils.js
holds useful helper functions
tests
contains unit tests to verify queries and mutations are working correctly.eslintrc.js
defines the style guidepackage.json
defines the dependencies and scripts for the serverREADME.md
gives a description of the server and setup instructionssetup.sh
enables the githooks
Make sure you have Node 12.14.1 (LTS) installed. Recommended, use nvm to manage node versions.
- clone the repo
- cd to the top directory
- run
npm install
- run
npm run setup
- run
npm start
- verify that it worked by going to the logged url
- In IntelliJ, search settings for "ESLint" and enable automatic configuration.
- Before commiting, code will need to pass an automated linting check.