{"id":17717709,"url":"https://github.com/mununki/ts-graphql-api-boilerplate","last_synced_at":"2026-04-17T13:32:56.281Z","repository":{"id":143922277,"uuid":"184455525","full_name":"mununki/ts-graphql-api-boilerplate","owner":"mununki","description":"A Typescript GraphQL API Boilerplate with GraphQL-Yoga, typeORM, JWT","archived":false,"fork":false,"pushed_at":"2019-05-01T18:07:40.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T23:27:33.766Z","etag":null,"topics":["graphql","graphql-api","graphql-yoga","jwt","typeorm","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mununki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-01T17:38:40.000Z","updated_at":"2019-05-12T02:49:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"81d3e6b1-0693-462d-85ff-f7b5a7aaf0a3","html_url":"https://github.com/mununki/ts-graphql-api-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mununki/ts-graphql-api-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fts-graphql-api-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fts-graphql-api-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fts-graphql-api-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fts-graphql-api-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mununki","download_url":"https://codeload.github.com/mununki/ts-graphql-api-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fts-graphql-api-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-api","graphql-yoga","jwt","typeorm","typescript"],"created_at":"2024-10-25T14:29:39.270Z","updated_at":"2026-04-17T13:32:56.260Z","avatar_url":"https://github.com/mununki.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typescript GraphQL API Boilerplate\n\nThis is a GraphQL API boilerplate built with Typescript, graphQL-yoga, typeORM, JWT\n\n## Stacks\n\n- Web Server Application : [graphQL-yoga](https://github.com/prisma/graphql-yoga)\n- ORM : [typeORM](https://github.com/typeorm/typeorm)\n- JWT : [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken)\n\n## Features\n\n- User Sign Up \u0026 Sign In\n- Change a Password, Profile\n\n## How to Run\n\n### Configuration\n\n1. Create a database\n\n```shell\npostgres=# CREATE DATABASE any;\n```\n\n2. Create a user as owner of database\n\n```shell\npostgres=# CREATE USER any WITH ENCRYPTED PASSWORD 'any';\n\npostgres=# ALTER DATABASE any OWNER TO any;\n```\n\n3. Grant all privileges to user for the database\n\n```shell\npostgres=# GRANT ALL PRIVILEGES ON DATABASE any TO any;\n```\n\n4. Configure `.env`\n\n```env\nJWT_SECRET_KEY=jwt-secret\nDB_NAME=any\nDB_ENDPOINT=localhost\nDB_USERNAME=any\nDB_PASSWORD=any\n```\n\n\u003e Set a JWT secret key\n\n### Run the server\n\n- Dev\n\n```shell\n$ yarn dev\n```\n\n- Prod\n\n```shell\n$yarn build\n$yarn start\n```\n\n### GraphQL Playground\n\nConnect to http://localhost:4000\n\n### Authentication : JWT\n\nYou need to set the Http request headers `X-JWT`: `{JWT_token}`\n\n## Usage\n\n### Sign Up\n\n```graphql\nmutation {\n  SignUp(email: \"test@test.com\", password: \"12345678\", fullName: \"graphql\", nickName: \"ts\") {\n    ok\n    error\n    user {\n      id\n      email\n      fullName\n      nickName\n      bio\n      avatar\n      createdAt\n      updatedAt\n    }\n    token\n  }\n}\n```\n\n### Sign In\n\n```graphql\nmutation {\n  SignIn(email: \"test@test.com\", password: \"12345678\") {\n    ok\n    error\n    token\n  }\n}\n```\n\n### Change a Password\n\n```graphql\nmutation {\n  ChangePassword(password: \"87654321\") {\n    ok\n    error\n    user {\n      id\n      email\n      fullName\n      nickName\n      bio\n      avatar\n      createdAt\n      updatedAt\n    }\n  }\n}\n```\n\n### Change a Profile\n\n```graphql\nmutation {\n  ChangeProfile(bio: \"developer\", avatar: \"developer.png\") {\n    ok\n    error\n    profile {\n      id\n      email\n      fullName\n      nickName\n      bio\n      avatar\n      createdAt\n      updatedAt\n    }\n  }\n}\n```\n\n### Get my profile\n\n```graphql\nquery {\n  getMyProfile {\n    ok\n    error\n    profile {\n      id\n      email\n      fullName\n      nickName\n      bio\n      avatar\n      createdAt\n      updatedAt\n    }\n  }\n}\n```\n\n### Reference\n\n- DalYoon / graphql-yoga-with-typeorm-boilerplate (https://github.com/DalYoon/graphql-yoga-with-typeorm-boilerplate)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmununki%2Fts-graphql-api-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmununki%2Fts-graphql-api-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmununki%2Fts-graphql-api-boilerplate/lists"}