Code Monkey home page Code Monkey logo

ws-monorepo's Introduction

ws-monorepo's People

Contributors

vince-lynch avatar

Watchers

 avatar

ws-monorepo's Issues

add NODE_TLS_REJECT_UNAUTHORISED to `server-ws`

Description:

certificate has expired on swapi.dev

swapi.dev's https certificate expired today

add the environment variable NODE_TLS_REJECT_UNAUTHORIZED in test enviroments

to be set to 0 to ensure that tests / devs can still interact with the endpoints

Tasks:

  • add env variable to local Dockerfile for local testing
  • add env variable to server-ws docker-compose (for tests dependent on)
  • add env variable to local /server-ws/index.js to allow devs to test locally

Acceptance criteria:

  • tests pass again in the GHA action

Notes:

sockets expired

gfffggf

https://swapi.dev/api/people/?search=dfs
image

turn into console app

turn into console app

Description:

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

add client connected message to `client-ws`

Description:

add client connected message to client-ws

add_client_connected_message

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

refactor `writeQuery` fn in cli.spec.js for client-ws package

Description:

refactor writeQuery fn in cli.spec.js for client-ws package

Tasks:

  • use regex to get pagination
  • use number of received pages to know when to stop waiting for more stdouts

Acceptance criteria:

  • tests still pass

Notes:

aim to reduce the time it takes for the tests to pass.

refactor the beneath

const writeQuery = (c, query = 'Luke Skywalker') =>
  new Promise((resolve) => {
    const output = { results: [], error: null }

    c.stdin.write(`${query}\r`)

    c.stdout.on('data', (data) => {
      const s = data.toString()
      const pages = s.split('\n')

      pages.forEach((page) => {
        if (page[0] === '(') {
          output.results.push(page)
        }
      })
      if (
        output.results.length &&
        pages[pages.length - 1] ===
          'What character would you like to search for? '
      ) {
        resolve(output)
      }
    })

    c.stderr.on('data', (data) => {
      const p = data.toString().split('\n')
      // eslint-disable-next-line prefer-destructuring
      output.error = p[0]
      resolve(output)
    })
  })

give proper error on server 404 or 502 bad gateway

Description:

give proper error on server 404 or 502 bad gateway

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

jsdoc functions

Description:

jsdoc functions

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

reconnect on disconnect `client-ws`

Description:

reconnect on disconnect client-ws

give stderr on server disconnect, and call reconnect function

Tasks:

  • listen for on.connectionError
  • listen for on.Disconnected
  • call reconnection fn
  • allow customisable stdout on connected
  • allow debounce for connection successful incase rapid connect - disconnects

Acceptance criteria:

  • ensure tests can still pass
  • demonstrate the disconnect - reconnect functionality in a screenshot.

Notes:

add debounce package

allow films for character to be parse-able in `ws-client`

Description:

add square brackets to response

Acceptance criteria:

  • allow films for character to be parse-able by wrapping in square brackets ws-client
  • tests are updated to count the number of films that a character appeared in

Notes:

add square brackets

add monorepo, prettier, eslint

Description:

add monorepo, prettier, eslint

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

add socket.io connection to client-ws

add connection to socket.io

Description:

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

allow sequential searches

Description:

allow sequential searches

Tasks:

Acceptance criteria:

  • The console should reset on completion of a search (on receipt of the last message in case of success, or on any error) to allow the user to make another search without restarting the application

Notes:

make an example query from client-ws

make an example query to server-ws from client-ws

Description:

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

refactor web sockets commands in `client-ws`

Description:

refactor web sockets commands in client-ws

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

allow the user to make another search without restarting the application

Description:

allow the user to make another search without restarting the application

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

add monorepo, prettier, eslint

Description:

add monorepo, prettier, eslint

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

combine search action and ws query function in `client-ws`

Description:

combine search action and ws query function in client-ws

Tasks:

  • Do something
  • Do another thing

Acceptance criteria:

  • Can test that the things by doing this check

Notes:

Blah blah blah, check out this link,
Don't make assumptions on the approach, as might blind you later on.

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.