Code Monkey home page Code Monkey logo

tcgtrader-back-end's Introduction

TCG-Trader (Backend)

GitHub contributors GitHub last commit GitHub CircleCI Hacktoberfest

TCG Trader is a tool to keep track of the cards your group owns and suggests trades between users. This way players in local groups can share their card pool for trading, show what cards they are looking for and show what cards they offer. This project is Open Source and power by Hacktoberfest community, feel free to contribute and make sure that your contributions are meaningfull!

First timers!

Hi everyone and welcome to TCGTrader-back-end. I have created a couple of imcomplete GraphQL mutations and queries that still need some work. Hopefully you can help me out completing the tasks that are open!

This project runs on Node using express. Some things you need to install beforehand are:

Install Node: https://nodejs.org/en/

All packages can be installed using npm like so:

npm install

Copy .env.example into a new file at the root folder .env to change the desired port. By default port will run at 8080 on:

localhost:8080

To run the graphql playground you can run:

npm start

Tadaa! Now you can play around in the playground here:

http://localhost:8080/

Resolvers

parent = contains arguments supplied from parent resolver
arg = contains arguments supplied from query
ctx = context for contextual data such as login tokens
info = information about the operation sent to server`

Domain Model

Domain Model

tcgtrader-back-end's People

Contributors

harisspahija avatar davidcabal avatar anilpandiya avatar presto412 avatar

Stargazers

Cristian Camilo Cucunubá avatar  avatar Marthijs Berfelo avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

tcgtrader-back-end's Issues

Add subscriptions

As a user I want to be notified when a possible trader gets added to one of my lists

Create trading subscription

As a user I want to be up to date with all possible trades

  • Subscribe to all possible trader gets added
  • Subscribe when a possible trader gets removed
  • Subscribe when offerList gets changed
  • Suscribe when wantList gets changed #18

Add the ability to change ports

In order to make the backend more customizeable. It would be a good issue to solve custom port changing. Somewhere in the code I should be able to give a parameter trough my .env file. This also requires a .env example!

Localhost cannot be found when there is no .env

process.env.PORT gets passed and has a fallback of 8080, but sometimes express will refuse to start because of dotenv missing in require.

Issue to be solved
localhost:8080 should be able to be visited once .env file is missing

Add offerList subscription

As a user I want to be able to subscribe whenever my offerList gets modified.

Issue to be solved

  • Create offerList subscription

Blocked by:
#3 #4

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.