Express + Typescript + MongoDB stack for storing Phenopackets.
.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)
docker compose -f docker-compose.yml up -d
- Should be available on http://localhost:3000
docker compose up -d
- Should be available on http://localhost:3000
npm install
npm run dev
- Should be available on http://localhost:3000
npm install -g protobuf2swagger
protobuf2swagger