GithubHelp home page GithubHelp logo

fredmoreira / phone-book-graphql Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 942 KB

A simple API GraphQL for experiencing testing frameworks

License: MIT License

JavaScript 100.00%
api graphql qa qa-automation-test graphql-server graphql-yoga graphql-api grapgql-node api-graphql mongodb

phone-book-graphql's Introduction

Phone-Book-Graphql Known Vulnerabilities

A simple API GraphQL for experiencing testing frameworks

Github Actions Build | Lint | Test

Requirements

  • MongoDB
  • Node & Npm

Install && Run

It follows one step by step showing how to get the API running.

Clone repository

git clone https://github.com/fredmoreira/phone-book-graphql.git

Install

npm i

If you don't have the MongoDB database installed on your local machine, remember to run it via command line or another way before running the command below.

npm start

Runing integration tests

npm test

Lint

npm run code:lint

Code check

npm run code:check

Prettier

npm run code:prettier

Check vulnerabilities in dependencies

npm run snyk-protect

The precommit is done by git hooks by package husky.

Therefore, whenever a commit is done, the following script will be executed:

npm run code:lint && npm run code:prettier

Any improvement will always be welcome. ๐Ÿš€ ๐Ÿ˜„

phone-book-graphql's People

Contributors

dependabot[bot] avatar fredmoreira avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

phone-book-graphql's Issues

Refactor .eslintrc.js

I've selected .eslintrc.js:.eslintrc.js for refactoring, which is a unit of 21 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐Ÿ‘

Here's the gist of this guideline:

  • Definition ๐Ÿ“–
    Limit the length of code units to 15 lines of code.
  • Whyโ“
    Small units are easier to analyse, test and reuse.
  • How ๐Ÿ”ง
    When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.

You can find more info about this guideline in Building Maintainable Software. ๐Ÿ“–


โ„น๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐Ÿ”ฒ next to them. The risk profile below the candidates signals (โœ…) when it's enough! ๐Ÿ


Good luck and happy coding! :shipit: โœจ ๐Ÿ’ฏ

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.