Code Monkey home page Code Monkey logo

api.gitfa.me's Introduction

api.gitfa.me

The graphql api for gitfame

Technologies

Name Description
graphq-yoga with graphql-tools as its core, it provides a better way of building graphql aplications
prisma db as a graphql api, this project uses the postgres connector
apollo engine Tracking and analytics for the gql api
prettier pre-commit code formating

Project Structure

.
├── app
│   ├── actions              
|   ├── database                # database files
│   │   ├── api.graphql         # db gql api generated by prisma (DO NOT TOUCH)
│   │   ├── schema.graphql      # db schema defined via gql type system
│   │   └── ...
|   ├── models                  # app gql api models
|   ├── resolvers      
│   │   ├── query               # query field resolvers
│   │   ├── mutation            # mutation field resolvers
│   │   ├── subscription        # subscription field resolvers
│   │   └── ...
|   ├── index.js                # entry point
|   ├── schema.grphql           # app gql api schema
│   └── ...
├── ci                          # deployment and testing scripts
├── env                         # dev and prod env files
└── ...

Setup Environment

Create env/dev.env and env/prod.env for development and production respectively. Read this to generate github token.

Example env:

NODE_ENV=development
API_BASE=http://localhost:4000/
DB_USER= #postgres user
DB_SECRET= #postgres pass
DB_API_NAME= #cluster name
DB_API_STAGE= #cluster stage
DB_API_SECRET= #secret to sign and verify JWT token for prisma api
APOLLO_ENGINE_KEY=
SENTRY_KEY=
GITHUB_TOKEN= # github personal access token

Quick Start (Development)

# Install Prisma and Postgres images
DB_USER=<pgUser> DB_SECRET=<pgPass> docker-compose up -d

# Install dependencies
yarn

# Deploy Prisma
yarn prisma-dev

# Start dev server on localhost:4000
yarn dev

Frontend repo : https://github.com/hereisnaman/gitfame

api.gitfa.me's People

Contributors

thenamankumar avatar kapillamba4 avatar

Watchers

 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.