GithubHelp home page GithubHelp logo

kriasoft / relay-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
3.8K 77.0 556.0 149.15 MB

๐Ÿ’ฅ Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI.

Home Page: https://graphqlstart.com

License: MIT License

JavaScript 26.69% TypeScript 63.45% Shell 0.09% HTML 0.96% HCL 7.92% Dockerfile 0.90%
nodejs graphql boilerplate api postgresql typescript template monorepo yarn postgres starter-kit hackathon react terraform graphql-yoga jotai joy-ui pothos prisma cloud-run

relay-starter-kit's Introduction

GraphQL
GraphQL Starter Kit

High-performance GraphQL API server, database dev tools, and React front-end.

Features

ย ย ย ย 


This project was bootstrapped with GraphQL Starter Kit. Be sure to join our Discord channel for assistance.

Directory Structure

โ”œโ”€โ”€.github โ€” GitHub configuration including CI/CD workflows.
โ”œโ”€โ”€.vscode โ€” VSCode settings including code snippets, recommended extensions etc.
โ”œโ”€โ”€app โ€” front-end application (Vite, Vitest, React, Joy UI).
โ”œโ”€โ”€db โ€” database schema, seeds, and migrations (PostgreSQL).
โ”œโ”€โ”€infra โ€” cloud infrastructure configuration (Terraform).
โ”œโ”€โ”€scripts โ€” automation scripts shared across the project.
โ”œโ”€โ”€server โ€” backend server (GraphQL Yoga, Pothos GraphQL).
โ””โ”€โ”€ ... โ€” add more packages such as worker, admin, mobile, etc.

Requirements

Getting Started

Just clone the repo and, install project dependencies and bootstrap the PostgreSQL database:

$ git clone https://github.com/kriasoft/graphql-starter-kit.git example
$ cd ./example                  # Change current directory to the newly created one
$ corepack enable               # Ensure Yarn is installed
$ yarn install                  # Install project dependencies
$ yarn db create                # Create a new database if doesn't exist
$ yarn db migrate --seed        # Migrate and seed the database

From there on, you can launch the app by running:

$ yarn workspace server start   # Or, `yarn server:start`
$ yarn workspace app start      # Or, `yarn app:start`

The GraphQL API server should become available at http://localhost:8080/.
While the front-end server should be running at http://localhost:5173/.

IMPORTANT: Tap Shift+Cmd+P in VSCode, run the TypeScript: Select TypeScript Version command and select the workspace version.

How to Update

In the case when you kept the original GraphQL Starter Kit git history, you can always pull and merge updates from the "seed" repository back into your project by running:

$ git fetch seed                # Fetch GraphQL Starter Kit (seed) repository
$ git checkout main             # Switch to the main branch (or, master branch)
$ git merge seed/main           # Merge upstream/master into the local branch

In order to update Yarn and other dependencies to the latest versions, run:

$ yarn set version latest       # Upgrade Yarn CLI to the latest version
$ yarn upgrade-interactive      # Bump Node.js dependencies using an interactive mode
$ yarn install                  # Install the updated Node.js dependencies
$ yarn dlx @yarnpkg/sdks vscode # Update VSCode settings

Backers

ย ย ย ย ย ย ย ย ย ย ย ย ย ย 

How to Contribute

We welcome contributions through pull requests and issues on our GitHub repository. Feel free to also start a conversation on our Discord server to discuss potential contributions or seek guidance.

License

Copyright ยฉ 2014-present Kriasoft. This source code is licensed under the MIT license found in the LICENSE file.

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.