Giter Site home page Giter Site logo

gardenbuilder-backend's People

Contributors

capndave avatar ingirodr avatar paytonagreen avatar

Watchers

 avatar  avatar

gardenbuilder-backend's Issues

Add Winston as a logger to project, replace console.log statements with logger.info or logger.error statements

We need to add Winston as a logger. Please:

  1. Install it into the project
  2. Set up a config file
  3. Set up a logs directory (at project root, outside of the src folder)
  4. Import it as logger into each file that uses a console.log statement
  5. Replace all instances of console.log with logger.info or logger.error depending on whether the console.log is meant to log an error or some information
  6. Check to ensure that a logger.info statement saves something to the log file in the logs directory

Bonus Points: Set up rotating logs, like a log for every day. There are a number of libraries that help with this on npm.

Create User resolver to expire/invalidate a token

Create User resolver to expire/invalidate a token.

From the front end (for the old API) this was called with

export const SIGNOUT_MUTATION = gql`
  mutation SIGNOUT_MUTATION {
    deleteToken {
      deleted
    }
    deleteRefreshToken {
      deleted
    }
  }

Update TODO sections in README.md

Get project up and running on a local DB, then update the sections in README.md marked with TODO with instructions on how to do those things.

Add code of conduct file

I would like to copy CODE_OF_CONDUCT.md from gardenbuilder-frontend into this repo. Please assign this issue to me.
Thanks.

Research and implement method for inserting multiple related entities at once

As an example, tests/resolvers/Garden.test.ts creates an owner and then a garden in the beforeAll block. If possible, it would probably be faster and less resource-intensive to create both at the same time. We need to research in the typeorm docs whether this is possible. If so, implement that method in tests/resolvers/Garden.test.ts so that we can use it as an example for similar contexts.

Bed Columns

In order to add functionality to the individual Bed on the front end, we need a to add a couple of columns to the Bed model on the backend.

  • height: number
  • width: number
  • unitOfMesurement: string

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.