GithubHelp home page GithubHelp logo

chenli0830 / nomii-rewards-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 877 KB

The serverless backend using GraphQL for Nomii-Rewards App

License: Apache License 2.0

JavaScript 74.24% CSS 25.35% HTML 0.41%

nomii-rewards-backend's Introduction

Nomii-Rewards-Serverless

The serverless backend using GraphQL for Nomii-Rewards App

Quick Start

Install global dependencies

npm install -g serverless firebase-tools 

Then install local dependencies

npm install

Then host local client

npm run dev-client

The hosted page is connected to the serverless backend, and it is very useful as references when developing frontend.

When we have time, we should probably deploy it on a server in the future.

Development

The above section discussed how to test and use the remote GraphQL backend.

Here is how to develop the GraphQL, host a fake db server and test it locally.

npm install -g json-server

Host local express GraphQL server - it is used to test the GraphQL locally

host-server

Host fake db server locally

host-fake-db

The DB data is in ./serverless/dev/db.json file. The hosted server can take standard CRUD rest API. This is useful when you want to quickly test your schema or tring to avoid direct interaction with a remote database.

After host these two servers locally, you can test your GraphQL layer locally at localhost:4000/graphql

nomii-rewards-backend's People

Contributors

chenli0830 avatar

Watchers

James Cloos avatar Andrew Lee 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.