Skip to content

A starter build for a typescript express app configured with mongoose, mongo, and jest.

Notifications You must be signed in to change notification settings

mwinb/vaports_mongo_starter

Repository files navigation

VaporTs Mongo Starter

build
npm build

start - runs build then executes dist/main.js with .env.example and NODE_ENV=production
npm start

starting dev environment with mongomemory server using .env.example and NODE_ENV=development
npm run start:dev

starting prod with mongo container
npm run start:env

starting mongo container
npm run start:mongo

starting environment with docker-compose
docker compose up

running unit tests on loop
npm test

running unit tests once with coverage
npm run test:unit

running integration tests once with coverage
npm run test:integration

running all tests once with coverage
npm run test:all

Building with docker:
npm run build && docker build -t docts_starter .

Running docker:
docker run --name ts_starter -p 4000:4000 docts_starter

Environment Variables

  • PORT
  • MONGO_PORT
  • NODE_ENV (production, development)
  • MONGO_USERNAME
  • MONGO_SERVER
  • MONGO_PASSWORD

About

A starter build for a typescript express app configured with mongoose, mongo, and jest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published