Giter VIP home page Giter VIP logo

graphql's Introduction

PokerNook GraphQL API

Development Setup

Recommended Tools

  • Node.js
  • Docker Desktop
  • VS Code

Clone the repo, then run:

npm install # Install project dependencies

docker-compose up --detach # Run the database(s) with Docker

npm run dev # Run the app

NPM Scripts Overview

npm run dev # Create a hot-reloading GraphQL server

npm run lint # Lint the project

npm run typecheck # Type-check the project

npm run build # Build application for deployment

Contributing

Pull Request Guidelines

  • Pushes to main will get deployed to production, so all development should be done in dedicated branches.

  • Checkout a topic branch from the relevant branch (i.e. main), and merge back against that branch.

  • If you add or change a model in the Prisma schema, be sure to also add the relevant database migration and seed.

graphql's People

Contributors

ben-walker avatar dependabot[bot] avatar fluxcdbot avatar

Watchers

 avatar  avatar

graphql's Issues

Use an explicit bundling/build tool

We should move away from @vercel/ncc at some point, and stop relying on whatever magic they're doing behind the scenes to bundle up code.

It's a dice roll whether a new ncc release will work. It would be better if we had more control over the build step (with something like webpack maybe).

Consolidate serverless workflows

Right now two separate serverless workflows are maintained: one for preview deploys and one for production deploys.

As these get more complicated and logic gets duplicated between them, it'd be nice to have the workflows consolidated in one spot.

Type import missing when running build output

Error message:

server_1  | Nexus Schema Typegen: Expected module /app/.build/api/server/context.js to be an absolute path to a TypeScript module, skipping.
server_1  | ๐Ÿš€ Server ready at http://localhost:3000
server_1  | Missing required typegen import: ContextModule

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.