graphql-api

Backend GraphQL Web Services

https://github.com/regulondbunam/graphql-api

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Backend GraphQL Web Services

Basic Info
  • Host: GitHub
  • Owner: regulondbunam
  • License: other
  • Language: JavaScript
  • Default Branch: master
  • Homepage:
  • Size: 3.77 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 5
  • Releases: 60
Created about 6 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

RegulonDB-WS GraphQL API

License RegulonDBVersion Status

Description

API web services to connect RegulonDB MongoDB collections. Functional services currently: - Data - Gene - Operon - Regulon - Phrases - Sigmulon - SRNA - Gensor Unit - List Object (New) - Tools - Coexpression - DrawingTracesTool (dnaFeatures) - RegulatoryNetwork

Motivation

With the reengineering of RegulonDB passing from relational model to an documental model, was needed a new web service to connect to the new documental database using GraphQL technology, with this web service API can be possible to get data from RegulonDB with an application layer using the technology previously mentioned with Javascript.

System requirements

Required software

  • Node JS ^16.13.0
  • NPM ^8.1.4

Install

Once the repo is cloned, use this command to install all libraries dependencies of the API

bash $ npm install

After that, use the following command and edit the ".env-sample" file to add credentials to access the MongoDB collections (keeping the variable name) and the ports for GraphQL servers (by default is used port 4001 for the gateway, 4002 for private services, and 4003 for public services).

```bash

On Unix

nano .env-sample

On Windows

notepad ..env-sample ```

Then use the next command for rename the file to ".env"

```bash

On Unix

mv .env-sample .env

On Windows

REN .env-sample .env ```

Quick start

Just use this command to start RegulonDB GraphQL Closed, Open and Gateway Services:

$ npm start

Now if the GraphQL Closed or Open ports in .env was not defined, it will take port 4001, 4002 and 4003 (by default) and GraphQL Playgroud for closedServices will run at http://localhost:4002/graphql, for OpenServices will run at http://localhost:4003/graphql and for Gateway will run at http://localhost:4001/graphql

Project website

[NOT DEFINED]

License

Copyright 2023 RegulonDB

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Support contact information

[It should be clear where to go for support, for example a contact e-mail address]

Software quality checklist

Accessibility

  • [ ] Unique DOI identifier (Please update identifier and link)
  • [ ] Version control system

Documentation

  • [x] README file

Learnability

  • [x] Quick start

Buildability

  • [ ] INSTALL file

Identity

  • [ ] Website

Copyright & Licensing

  • [x] LICENSE file

Portability

  • [ ] Multiple platforms
  • [ ] Browsers

Supportability

  • [ ] E-mail address
  • [ ] Issue tracker
  • [ ] Slack
  • [ ] Gitter

Analysability

  • [ ] Source code structured
  • [ ] Sensible names
  • [ ] Coding standards - style guides

Changeability

  • [x] CONTRIBUTING file
  • [x] Code of Conduct file
  • [ ] Code changes, and their authorship, publicly visible

Reusability

  • [ ] Source code set up in a modular fashion

Security & Privacy

  • [ ] Passwords must never be stored in unhashed form

Owner

  • Name: regulondbunam
  • Login: regulondbunam
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.1.0
message: If you use this software, please cite it as below.
authors:
  - name: RegulonDB
    country: MX
    email: regulondb@ccg.unam.mx
    website: http://regulondb.ccg.unam.mx/
date-released: YYYY-MM-DD
doi: [example: 10.5281/zenodo.1003150]
identifiers: 
  - type: "other"
    value: "[example: mbiotools:RSAT_-_Retrieve_Sequence]"
license: [GPL-3.0-only | Apache-2.0 | MIT ]
repository-code: [URL example: https://github.com/regulondbunam/Components]
title: [example: Components]
url: [URL example: http://regulondbtools.ccg.unam.mx/Components]
version: X.X.X

GitHub Events

Total
  • Release event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 14
  • Pull request event: 8
  • Create event: 6
Last Year
  • Release event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 14
  • Pull request event: 8
  • Create event: 6

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: 22 days
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.33
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 0
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: 22 days
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.33
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (19)
  • andresloal (8)
Top Labels
Issue Labels
Pull Request Labels
dependencies (19)

Dependencies

package-lock.json npm
  • 1003 dependencies
package.json npm
  • @babel/core ^7.12.17 development
  • @babel/preset-env ^7.12.17 development
  • axios ^0.25.0 development
  • babel-eslint ^10.1.0 development
  • babel-jest ^27.4.6 development
  • braces ^3.0.2 development
  • concurrently ^7.0.0 development
  • handlebars ^4.7.7 development
  • jest ^27.4.7 development
  • lodash ^4.17.21 development
  • node-fetch ^2.6.7 development
  • nodemon ^2.0.7 development
  • prettier ^2.5.1 development
  • @apollo/federation ^0.33.9
  • @apollo/gateway ^0.46.0
  • @graphql-tools/load-files ^6.5.2
  • @graphql-tools/merge ^8.2.1
  • apollo-fetch ^0.6.0
  • apollo-server-express ^3.6.2
  • babel-cli ^6.26.0
  • babel-preset-env ^1.7.0
  • babel-preset-stage-0 ^6.24.1
  • dotenv ^14.2.0
  • express ^4.17.1
  • express-rate-limit ^6.2.0
  • graphql ^15.5.0
  • mongodb-filter-object-parser ^1.4.0
  • mongoose ^6.1.8