Giter VIP home page Giter VIP logo

graphql-blog.api's Introduction

Graphql-Blog.API

Dev project hands-on GraphQL practise and showcasing the full pipeline, from develop to production.

API Production Build Status

API Test Build Status

Client

Development

Copy .env.example to .env, and modify as per your needs.

The following script will run all the developer dependency commands. Creating web server, db server, and prisma server through docker containers. When finished, you may interact with the web server for your dev needs, e.g. pressing rs will restart the nodemod server.

$ ./docker/up-dev.sh

When you want to execute a command you may use the running container graphql-blog-api_api_1. E.g.: $ docker exec -it graphql-blog-api_api_1 {npm install|prisma deploy|etc}

Useful commands

  • $ prisma login|token|deploy
  • $ npm run get-schema

Infrastructure

Initially the infrastructure was setup on a custom Linux machine, with all dependency provided by docker services. However, because the prisma docker container is quite memory expensive even when idle, and with this project primary intent being hands on experience; both the prisma and the database docker services were moved to prisma cloud & heroku respectively. As for the node web server, that still lives on premises.

Reference to the initial setup; useful & good learning opportunity for future reference. https://github.com/rdok/graphql-blog.api/blob/v1.0.0/docker/docker-compose.yml

graphql-blog.api's People

Contributors

dependabot[bot] avatar rdok avatar

Watchers

 avatar  avatar  avatar

graphql-blog.api's Issues

New Features

  1. I should be able to delete other users comments if the comment is on my post.
  2. I should be able to disable comments on my post.
  3. I should be able to have a pinned/featured post that I want to share. Add "featuredPost" field to user with "Post" type.

Update infrastructure for test CI.

Latest tests cover end to end product behaviour.

As such, it requires a node web server, prisma service, as well as database service.

When the tests are done, need to destroy the above service on the Jenkins agent machine.

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.