Giter VIP home page Giter VIP logo

cardjizzerbackend's People

Contributors

ijustdev avatar

Stargazers

 avatar

Watchers

 avatar

cardjizzerbackend's Issues

Fix tests

The current build is failing due to not working tests. The code has been changed to work with callbacks. Not all commands are working with this.

Re-implement ssl

The current server (http-package) does not support SSL encryption. We should introduce the https package.

Files to change: app.js

Unit tests for Google oauth

Current situation

There is a command (setUsername) used for creating a link between the websocket and the user that wants to log in. Since this command is now deprecated and will be replaced by the login command there is now a need for using real Google oauth data in unit tests (or maybe not. Have a look at solutions).

Solutions

Multiple solutions are conceivable.

  • Create and insert a dummy user after the database was created and use those credentials.
  • Use real Google oauth data

Unfortunately Google doesn't provide such dummy data. The only possible way of implementing the second approach would be real users that need to provide a refresh token every 60 minutes.

Conclusion

Considering only the effort put in the first approach it would be the better one.
BUT
This will result in a lower test coverage and the oauth mechanism can then be broken easily.

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.