Skip to content

a-milburn/Mongoose-TypeScript-example

 
 

Repository files navigation

Mongoose TypeScript example

Known Vulnerabilities GitHub stars GitHub license GitHub forks

This repo is example code that goes along with this medium aticle: https://medium.com/@tomanagle/strongly-typed-models-with-mongoose-and-typescript-7bc2f7197722

The article explains how to use use TypeScript with your Mongoose models.

If something in the article or this repo needsfurther explanation or improvements, please sumit a pull request.

Testing

yarn test

The test command will setup a mongodb test server, connect to it, run your tests and the server will go through a teardown process to clean up all remaining listners.

Development

yarn dev

The run dev command will start the server and listen on the configured port. The port can be configured in ./src/index.ts

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 72.6%
  • JavaScript 27.4%