Skip to content

zayrus/mutants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"]}'