Skip to content

Clinical-Genomics/phenopacket-api

 
 

Repository files navigation

Phenopacket API

Express + Typescript + MongoDB stack for storing Phenopackets.

Getting started

.env settings

  • DATABASE_URL="mongodb://localhost:27017/mongodb"

    URI to mongodb

  • PORT="3000"

    Listen port

  • ALLOWED_ORIGIN="http://localhost:5173"

    CORS allowed origin - frontend URI

  • API_URL="http://localhost:3000"

    This API's URI (required for image uploads to work)

Using Docker (production mode)

  1. docker compose -f docker-compose.yml up -d
  2. Should be available on http://localhost:3000

Using Docker (development mode)

  1. docker compose up -d
  2. Should be available on http://localhost:3000

Local development mode

  1. npm install
  2. npm run dev
  3. Should be available on http://localhost:3000

Generate Swagger apischema

npm install -g protobuf2swagger

protobuf2swagger

About

Phenopacket API UDNI tip2toe backend for deep phenotyping

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 65.1%
  • JavaScript 30.1%
  • Dockerfile 4.8%