Giter Site home page Giter Site logo

ossamarafique / apollo-graphql-starter-kit-user-login-file-uploader Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 720 KB

Modular GraphQL Implementation With User Authentication and File Uploader (Disk + S3). Will be adding more features soon.

JavaScript 98.27% Shell 1.73%
graphql apollo-server apollo-server-express apollo-graphql jwt-authentication

apollo-graphql-starter-kit-user-login-file-uploader's Introduction

๐Ÿš€ Apollo GraphQL Starter Kit

Version License: MIT Buy Me A Coffee Twitter: OssamaRafique

๐Ÿ  Homepage

Run the Project

Rename env.example to .env and fill in the details

PORT=3000
MongoDB_URL=
JWT_SECRET_KEY=
S3_ENABLED=Values "yes" or "no"
S3_ACCESS_KEY=
S3_SECRET=
S3_BUCKET=
npm install
node server.js

GraphQL Schema

directive @cacheControl(
  maxAge: Int
  scope: CacheControlScope
) on FIELD_DEFINITION | OBJECT | INTERFACE
enum CacheControlScope {
  PUBLIC
  PRIVATE
}

type Component {
  id: ID!
  identifier: String!
  picture: String!
  code: String!
}

scalar DateTime

type File {
  filename: String!
  mimetype: String!
  encoding: String!
}

input LoginInput {
  email: String!
  password: String!
}

type Mutation {
  _: String
  signup(input: SignupInput): User
  login(input: LoginInput): Token
}

type Query {
  _: String
  users: [User!]
  user(email: String!): User
  components: [Component!]
}

input SignupInput {
  name: String!
  email: String!
  password: String!
  avatar: Upload!
}

type Token {
  token: String!
}

scalar Upload

type User {
  id: ID!
  name: String!
  email: String!
  avatar: String!
  role: Int!
  createdAt: DateTime!
  updatedAt: DateTime!
}

Author

๐Ÿ‘ค Ossama Rafique

Show your support

Give a โญ๏ธ if this project helped you!

ko-fi

apollo-graphql-starter-kit-user-login-file-uploader's People

Contributors

dependabot[bot] avatar ossamarafique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.