Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.1 KB

README.md

File metadata and controls

48 lines (39 loc) · 1.1 KB

Mutants DNA analyzer

Made with

Getting Started

  • Run git clone https://github.com/zayrus/mutants.git
  • Run cd mutants & npm i
  • Rename .example_env to .env
  • Run mongod
  • Run npm start

API Routes

  • /mutants
  • /stats
  • /documentation

Tests

Run npm test

Example data

Mutant

  • Method: POST
  • Endpoint: /mutants
  • Body: {dna: ["ATGCGA","CAGTGC","TTATTT","AGACGG","GCGTCA","TCACTG"]}

Curl

curl -X POST
https://mutants-bjnfgbemjb.now.sh/mutants
-H 'Content-Type: application/json'
-d ' {"dna": ["ATGCGA","CAGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"]}'

Human

  • Method: POST
  • Endpoint: /mutants
  • Body: {dna: ["ATGCGA","CAGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"]}

Curl

curl -X POST
https://mutants-bjnfgbemjb.now.sh/mutants
-H 'Content-Type: application/json'
-d '{"dna": ["ATGCGA","CAGTGC","TTATTT","AGACGG","GCGTCA","TCACTG"]}'